Remove unwanted blank line eclipse editor

Ankur Loriya picture Ankur Loriya · Oct 5, 2012 · Viewed 22.6k times · Source

When i open any file in eclipse. it show alternative blank line after all the code lines and blank line. how can i remove it....

enter image description here

Answer

J4cK picture J4cK · Aug 9, 2014

In eclipse preference setting you can remove all the unwanted blank lines. Eclipse: Window > Preferences > Java > Code Style > Formatter > Edit the formatter and following screen will pop up. enter image description here

And when you format the code all unwanted blank lines will be removed.