When using CTRL + SHIFT + F in Eclipse by default it wraps your lines quite tightly. If you have a relatively large screen this is unnecessary and annoying. To change the width that Eclipse lets your code use before wrapping it to the next line, use the steps below:
- In Eclipse, click "Window" > "Preferences"
- On the left expand "Java" and click "Formatter"
- Either edit your existing profile or create a new one using the "Eclipse [built-in]" to initialize settings and click the "Edit" button
- Click on the "Line Wrapping" tab at the top
- Change the "Maximum Line Width" (the first option) to your desired width
- Click "Apply" and "OK"
My screen resolution is 1920 x 1080 and a width of 200 was perfect.