[Indent]How to set the indent of block that contains many lines?
Answered
When a block contains many lines, like the comment here
/*
*aaaaaa
*/
int a
i set its indent as
Indent.getSpaceIndent(4);
i want it to be
/*
*aaaaaa
*/
int a
but it has been
/*
*aaaaaa
*/
int a
Please sign in to leave a comment.
Hi,
I suggest checking the Java formatter implementation:
https://github.com/JetBrains/intellij-community/blob/master/java/java-impl/src/com/intellij/psi/formatter/java/AbstractJavaBlock.java#L224:L226