Simple code formatter based on ACE 3 Coding Guidelines.
Click here to see how it works.
- Remove leading and tailing whitespaces
- Normalize brackets
- Normalize comments
- Normalize case of commands
- Normalize spaces before and after comma
- Normalize
if
andwhile
statements - Remove multiple spaces
- Add new line after every semicolon
- Remove any whitespaces before semicolon and duplicates
- Trim content of parentheses
- Parse block levels and set indents
- Press
Shift + Alt + F
to format code in editor - Click the
Right Mouse Button (RMB)
on your code and select Format document - Select code, click the
RMB
and select Format Selection or pressCtrl + K
andCtrl + F
Hotkeys may be different depending on your settings