Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to turn off break line in eclipse

Tags:

java

eclipse

Does anybody know how to turn line breaking in eclipse after you press CTRL + SHIFT + F (code format), ex :

System.err                     .println("Incorrect file name, make sure you include .extension with your file name"); 
like image 234
ant Avatar asked Jul 13 '10 23:07

ant


People also ask

How to remove line break in eclipse?

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. And when you format the code all unwanted blank lines will be removed.

How do you wrap lines in eclipse?

There is a "Toggle Word Wrap" command hidden in the "Window > Editor" menu (default shortcut is Alt+Shift+Y). Or you can use the Quick Access bar: Ctrl+3, and type wrap.


1 Answers

Go to Window->Preferences->Java->Code Style->Formatter. Create new formatter. Click on edit and then pick tab Line Wrapping and set Line Wrapping policy to Do not wrap.

like image 135
draganstankovic Avatar answered Sep 21 '22 10:09

draganstankovic