keyboardshortcut

Indent/outdent on a MBP keyboard in VSC?


Unable to get the keyboard shortcuts for indent/outdent to work in VSC. The documented defaults of ⌘] / ⌘[ don't work (not possible with just 2 keys on MBP). (https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf)

To just get a square bracket [ ] with the MBP you need to use the ALT+8 or 9 keys. So I tried those with the command key ⌘ and nothing. Anyone know the solution. I run up against these sorts of problems all the time with MBP.


Solution

  • I assume VSC stands for Visual Studio Code:

    Indent: Mark the lines you want an press Tab

    Outdent: Mark the lines you want an press Shift+Tab