Reputation: 595
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?
Upvotes: 5
Views: 2305
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.)
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.
Upvotes: 10