You can use the default text formatting text by selecting the code you want to format, and then enter:
Ctrl + Shift + F (context menu Source → Format)
If this does not work, you can edit this default formatter by modifying existing blank lines. The number of blank lines to save from 1 to your number in Prefrences. Java Formatter Formatter Style. Editing the default Eclipse form. Empty line.
source
share