mac shortcut to format code in intellij code example Example: format code intellij // Mac CMD + Option + L // Windows Ctrl + Alt + L