horatio1701d
horatio1701d

Reputation: 9169

Intellij IDEA Blank Lines after Opening Brace Formatting

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) {

}

```

Upvotes: 1

Views: 1435

Answers (2)

horatio1701d
horatio1701d

Reputation: 9169

Disabling Gauge plugin as recommended in this post did the trick: Intellij adding extra line in new blocks.

Upvotes: 1

Maroun
Maroun

Reputation: 95968

Go to:

EditorCode StyleJavaBlank Lines

Choose how many spaces you want around methods, classes, etc...

Upvotes: 2

Related Questions