Skip to content

Instantly share code, notes, and snippets.

@david-driscoll
Created November 12, 2020 13:32
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 david-driscoll/6cd0044c1408e3aaf9eaab9e1c0f3061 to your computer and use it in GitHub Desktop.
Save david-driscoll/6cd0044c1408e3aaf9eaab9e1c0f3061 to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+k ctrl+d",
"command": "editor.action.formatDocument",
"when": "editorTextFocus"
},
{
"key": "ctrl+r ctrl+r",
"command": "editor.action.rename",
"when": "editorTextFocus"
},
// Disable editor.action.copyLinesUpAction
{
"key": "shift+alt+up",
"command": "",
"when": "editorTextFocus"
},
// Disable editor.action.copyLinesDownAction
{
"key": "shift+alt+down",
"command": "",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
// disable console.open
{
"key": "ctrl+shift+c",
"command": ""
},
{
"key": "ctrl+shift+s",
"command": ""
},
// disable console.openActive
{
"key": "ctrl+shift+a",
"command": ""
},
{
"key": "ctrl+shift+`",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "alt+`",
"command": "workbench.action.terminal.openNativeConsole"
},
{
"key": "ctrl+\\",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+shift+\\",
"command": "workbench.files.action.showActiveFileInExplorer"
},
{
"key": "ctrl+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "ctrl+shift+u",
"command": "editor.action.transformToLowercase"
},
{
"key": "alt+enter",
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+.",
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+s",
"command": "saveAll",
"when": "editorTextFocus && !editorReadonly"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment