Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the width of the Eclipse editor?

Tags:

java

eclipse

I'm coding in eclipse. I format my code using CtrlShiftF, but the width of editor isn't great enough. How can I increase the width?

enter image description here

like image 535
Fido Avatar asked Jan 15 '23 15:01

Fido


1 Answers

Assuming this means you want to increase the maximum line width, you want to go into Preferences (Window -> Preferences) then find the Java -> Code Style -> Formatter menu. (Just type "formatter" into the search box and you'll find it quickly.)

Preferences dialog

Click "Edit" for your active profile, then go to the Line Wrapping tab. The first item should be "Maximum line width". Set the value to some appropriate limit (e.g. 120) and reformat.

Line Wrapping preferences

like image 175
Jon Skeet Avatar answered Jan 21 '23 01:01

Jon Skeet