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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With