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

3npbholx  于 2023-05-12  发布在  其他
关注(0)|答案(1)|浏览(197)

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");
guicsvcw

guicsvcw1#

您可以在项目设置->代码样式-> Java -> Wrapping and Braces中调整格式。您正在寻找的选项应该是“方法调用参数”或“二进制表达式”

相关问题