intellij idea automatically beautify code code example Example: format code intellij // Mac CMD + Option + L // Windows Ctrl + Alt + L