How to auto-format code in Eclipse?

On Windows and Linux : Ctrl + Shift + F

On Mac :  +  + F

(Alternatively you can press Format in Main Menu > Source)

Leave a Comment

error code: 523