问题
For some reason I do not remember this as being default but trying to figure out how to make Intellij only insert 1 blank line instead of 2 blank lines after opening brace.
This is what my current default setup is doing:
```
myMethod(arg) {
}
```
But this seems more logical and what I want:
```
myMethod(arg) {
}
```
回答1:
Go to:
Editor → Code Style → Java → Blank Lines
Choose how many spaces you want around methods, classes, etc...
回答2:
Disabling Gauge plugin as recommended in this post did the trick: Intellij adding extra line in new blocks.
来源:https://stackoverflow.com/questions/28010094/intellij-idea-blank-lines-after-opening-brace-formatting