6

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:

 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?

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.