Intellij代码格式化,新行上的Java注释 [英] Intellij code formatting, Java annotations on new lines
本文介绍了Intellij代码格式化,新行上的Java注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用IntelliJ 12和
这是我的成员变量注释在同一行,我讨厌!
谢谢!
解决方案 / div>
转到首选项→编辑→代码风格→ Java→包装和大括号选项卡,然后找到字段注释部分,然后选中单个注释之后不换行选项
$ b在IntelliJ v14中:
$ b
I'm using IntelliJ 12 and It's putting my member variable annotations on the same line, which i hate! How do I setup the code formatter to keep annotations on separate lines?
thanks!
解决方案
Navigate to Preferences → Editor → Code Style → Java → Wrapping and Braces tab, then locate the section Field annotations and check the option Do not wrap after single annotation.
In IntelliJ v14:
这篇关于Intellij代码格式化,新行上的Java注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文