How to add space between )
and Enum
name?
I want to see this:
enum SampleEnum {
@Annotation("1") ONE,
@Annotation("2") TWO,
@Annotation THREE
}
This is how auto-formatting works:
enum SampleEnum {
@Annotation("1")ONE,
@Annotation("2")TWO,
@Annotation THREE
}
Don't want to use @formatter:off / on
UPDATE:
I added an issue https://youtrack.jetbrains.com/issue/IDEA-170457
The settings for auto formatting code are grabbed from the settings for "Code Style." These settings can be found at:
File - Settings - Editor - Code Style - Java
The setting your looking for is probably under the "Spaces" tab
Hopefully this fixes your problem.
Alternatively you can look through the IDEA add on repository for code style add-ons: https://plugins.jetbrains.com/search/idea?correctionAllowed=true&search=code+style
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.