Fido
Fido

Reputation: 595

How to increase the width of the Eclipse editor?

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

Upvotes: 5

Views: 2305

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1499860

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

Upvotes: 10

Related Questions