Search code examples
javaeclipseformatter

Eclipse formatter : add blank line at the end of the class


I am trying to setup my own profile for the Eclipse's code formatter but I cannot find a way to add a blank line at the end of the class.

public class MyClass {

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

Here is my current profile.


Solution

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