Skip to content

Instantly share code, notes, and snippets.

@goodGid
Created May 23, 2021 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goodGid/6e4bad3340c30dd021689e4e1eee0f29 to your computer and use it in GitHub Desktop.
Save goodGid/6e4bad3340c30dd021689e4e1eee0f29 to your computer and use it in GitHub Desktop.
keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "shift+cmd+k",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1"
},
{
"key": "ctrl+1",
"command": "-workbench.action.openEditorAtIndex1"
},
{
"key": "cmd+2",
"command": "workbench.action.openEditorAtIndex2"
},
{
"key": "ctrl+2",
"command": "-workbench.action.openEditorAtIndex2"
},
{
"key": "cmd+3",
"command": "workbench.action.openEditorAtIndex3"
},
{
"key": "ctrl+3",
"command": "-workbench.action.openEditorAtIndex3"
},
{
"key": "cmd+4",
"command": "workbench.action.openEditorAtIndex4"
},
{
"key": "ctrl+4",
"command": "-workbench.action.openEditorAtIndex4"
},
{
"key": "cmd+r",
"command": "workbench.action.showCommands"
},
{
"key": "shift+cmd+p",
"command": "-workbench.action.showCommands"
},
{
"key": "cmd+enter",
"command": "markdown.showPreview",
"when": "editorLangId == 'markdown'"
},
{
"key": "shift+cmd+v",
"command": "-markdown.showPreview",
"when": "editorLangId == 'markdown'"
},
{
"key": "cmd+l",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{
"key": "cmd+l",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment