简体   繁体   English

IntelliJ IDEA 方法名称缩进

[英]IntelliJ IDEA method name indentation

Consider I have a verbose method declaration, so I want to wrap method name so line with method declaration is not too long:考虑到我有一个冗长的方法声明,所以我想包装方法名称,以便与方法声明的行不会太长:

private Map<VeryLongClassName, VeryLongClassName>
    veryLongMethodName(...

IDEA's autoformatting does not indent method name relatively to class members: IDEA 的自动格式化不会相对于类成员缩进方法名称:

 private Map<VeryLongClassName, VeryLongClassName>
 veryLongMethodName(...

I however want it to be indented like in the first code snippet.但是,我希望它像第一个代码片段一样缩进。

Is there a way to achieve this?有没有办法实现这一目标?

No such option yet.还没有这样的选择。 You can follow and vote for this feature request: IDEA-185677 , which is titled "An option to apply continuation indent to method name" and describes what you want.您可以关注并投票支持此功能请求: IDEA-185677 ,其标题为“将连续缩进应用于方法名称的选项”并描述了您想要的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM