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
548k questions
547k answers
4 comments
86.3k users