Format Eclipse: add a blank line at the end of the class

I am trying to configure my own profile to format Eclipse code, but I cannot find a way to add an empty line to the end of the class.

public class MyClass {

     public void method() {
          // Something here.
     }
     // Want a blank line here.
}

Here is my current profile.

+4
source share
1 answer

There is no such option. The best you can do is set the number of empty lines to save and manually insert an empty line.

+3
source

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


All Articles