atom-auto-indent package This package will allow you to auto-indent your current file. Usage methods With the file open, use the keybinding: Ctrl + Alt + I on PC. Cmd + Alt + I on Mac. With the file open, open Atom command palette, type auto-indent:apply or Auto Indent: Apply.