How do you auto-format code in Eclipse?
On Windows and Linux : Ctrl + Shift + F
On Mac : ? + ? + F
(Alternatively you can press Format in Main Menu > Source)
Format
2.1m questions
2.1m answers
60 comments
57.0k users