字符串换行时Intellij IDEA加号 [英] Intellij IDEA plus sign when String wrap

查看:1620
本文介绍了字符串换行时Intellij IDEA加号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Intellij IDEA 10.5社区。
如果我有一个很长的字符串并想要分成多行,我按一个字符串中间的ENTER键然后得到:

I'm using Intellij IDEA 10.5 Community. If I have a long String and want to split in in mulitple lines I press ENTER key in the middle of a String and get this:

String str = "ONE LONG" +
             "STRING";

是否可以将+符号放在行的开头,如下所示:

Is it possble to put the + sign in the beginning of the line, like this:

String str = "ONE LONG"
             + "STRING";


推荐答案

设置|代码风格|包装和大括号,在二进制表达式组下启用下一行操作签名

这篇关于字符串换行时Intellij IDEA加号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆