Indent/format code in Visual Studio code on MAC
The shortcut is: Alt + Shift + F
Updated December 21, 2017: as pointed out by Fabio, on mac it should be: ⌘
+ ]
On Windows: indent control is ctrl
+ ]
A good way to find commands is by navigating to: Code -> Preferences -> Keyboard Shortcuts
Also, the Visual Studio Code team provided those handy shortcut pdfs:
- MacOS
- Windows
- Linux
Another helpful command to achieve this might be: shift + option + f which is auto format.
The shortcut to format code on Visual Studio for Mac Community Edition is Ctrl + i