Skip to content

Instantly share code, notes, and snippets.

@a1300
Last active December 22, 2024 10:27
Show Gist options
  • Save a1300/9f5795d89dfbc00264ec203d9a221b40 to your computer and use it in GitHub Desktop.
Save a1300/9f5795d89dfbc00264ec203d9a221b40 to your computer and use it in GitHub Desktop.
VS-Code keybindings vscode visual studio code keyboard shortcuts
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+alt+1",
"command": "type",
"args": {
"text": "'"
},
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+2",
"command": "type",
"args": {
"text": "<"
},
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+3",
"command": "type",
"args": {
"text": ">"
},
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+4",
"command": "type",
"args": {
"text": "|"
},
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+5",
"command": "type",
"args": {
"text": "#"
},
"when": "editorTextFocus"
}
]

How to activate the custom keyboard shortcuts above?

  1. In VSCode press Ctrl + K, Ctrl + S.
  2. Then press the Open JSON file with keyboard shortcuts
  3. Then paste the content of the file above into the file.
  4. Now you can use the shortcuts in VSCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment