All posts

How to update keyboard shortcuts in VScode

 vscode

If you need to update your shortcuts in VScode first open the command palette, on a mac you can do this through cmd+shift+p. This is not to be confused with your user settings file.

Next type “Open Keyboard Shortcuts” and select it. This will open a JSON configuration file that you can paste your shortcuts in. Each configuration object has at two keys “key” and “command” which are fairly self explanatory and here is an example for reference:

[
  {
    "key": "alt+x",
    "command": "editor.action.selectToBracket"
  },
  {
    "key": "cmd+k",
    "command": "workbench.files.action.collapseExplorerFolders"
  }
]

Postscript:

I built two products to help fund continued efforts for this website, it would mean a lot if you would check them out:
1. 2500+ Words for the Undermotivated Software Engineer - A short essay I wrote on the titled topic ($3).
2. Build 3 Chrome Extensions in Under 2 Hours - A course I built to teach chrome extension development ($9-20).