auto indent while saving in intelij idea mac code example Example: format code intellij // Mac CMD + Option + L // Windows Ctrl + Alt + L