문제

I have this code:

private int a;

private int b;

private int c;

But when I reformat it with IntelliJ, it changes to this:

private int a;
private int b;
private int c;

How would I allow it to keep the blank lines?

But this code:

private boolean a;
private String s;

Should stay as it is.

도움이 되었습니까?

해결책

The problem is caused by the Rearranger bug, at the moment it doesn't honor the maximum blank lines setting. I've created the issue that you can follow for progress.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top