你如何修复intellij奇怪的字符串缩进?

时间:2013-08-10 08:11:07

标签: java intellij-idea

Intellij继续像这样格式化我的字符串,它很烦人,如何修复它以便所有行排成一行?

    PreparedStatement p = s.prepare(
            "select distinct resource, uid, role "+
                    "from role " +
                    "where person_uuid=? " +
                    "order by role, resource, uid");

即:

    PreparedStatement p = s.prepare(
            "select distinct resource, uid, role "+
            "from role " +
            "where person_uuid=? " +
            "order by role, resource, uid");

1 个答案:

答案 0 :(得分:34)

您可以在“项目设置”中调整格式 - >代码风格 - > Java - >包裹和支撑。您要查找的选项应该是“方法调用参数”或“二进制表达式”