nz_21
nz_21

Reputation: 7393

Intellij reformat file without inserting space between lines

Say I have the following lines:


foo();
bar();

int main() {
}

Intellij reformats it so that it becomes:


foo();

bar();

...

How do I make it so that it does not add the annoying whitespace between foo() and bar()?

Upvotes: 0

Views: 20

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402433

For Java it can be configured in File | Settings | Editor | Code Style | Java, Blank Lines, Around method:

around method

Upvotes: 1

Related Questions