How to increase the width of the Eclipse editor?

I am coding in eclipse. I will format my code with Ctrl Shift F , but the width of the editor is not large enough. How to increase the width?

enter image description here

+4
source share
1 answer

Assuming this means that you want to increase the maximum line width, you want to go to Preferences (Window β†’ Preferences), then find the Java menu β†’ Code Style β†’ Formatter. (Just type β€œformatter” in the search box and you will find it quickly.)

Preferences dialog

Click Modify for the active profile, then go to the Line Layout tab. The first item should be "Maximum Line Width". Set the value for some suitable limit (e.g. 120) and reformat.

Line Wrapping preferences

+9
source

All Articles