Intellij Idea Code Style - insert a blank line after closing a curly brace

I want the idea to insert an empty string after closing the curly brace when formatting the code.

So this,

if(condition1)
{
    someMethod();
}
else
{
    anotherMethod();
}
statement1;
statement2;

will end like this

if(condition1)
{
    someMethod();
}
else
{
    anotherMethod();
}

statement1;
statement2;

I looked at the Code Style dialog box, but could not find the corresponding option.

+4
source share

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


All Articles