Intellij IDEA Blank Lines after formatting formatting

For some reason, I don’t remember how it was by default, but I’m trying to figure out how to get Intellij to insert only one empty line instead of two empty lines after opening the bracket.

This is what my current default setup does:

``` myMethod(arg) { } ``` 

But this seems more logical and what I want:

 ``` myMethod(arg) { } ``` 
0
source share
2 answers

Disabling the Gauge plugin, as recommended in this post, did the trick: Intellij adds an extra line to the new blocks .

+1
source

Switch to:

Editor -> Code Style -> Java -> Blank Lines

Choose the number of spaces you want to use for methods, classes, etc.

0
source

Source: https://habr.com/ru/post/980407/


All Articles