Skip to content

Instantly share code, notes, and snippets.

@pegasuspect
Created March 12, 2021 14:39
Show Gist options
  • Save pegasuspect/0240dc11522b70401bd16d7a02ff56e9 to your computer and use it in GitHub Desktop.
Save pegasuspect/0240dc11522b70401bd16d7a02ff56e9 to your computer and use it in GitHub Desktop.
Personal VS Code Keyboard Shortcuts
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+k cmd+l",
"command": "editor.action.transformToLowercase"
},
{
"key": "cmd+k cmd+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "shift+cmd+k shift+cmd+l",
"command": "editor.toggleFold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+l",
"command": "-editor.toggleFold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+u",
"command": "-editor.action.removeCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "f2",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "enter",
"command": "-renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "shift+f2",
"command": "acceptRenameInputWithPreview",
"when": "config.editor.rename.enablePreview && editorFocus && renameInputVisible"
},
{
"key": "shift+enter",
"command": "-acceptRenameInputWithPreview",
"when": "config.editor.rename.enablePreview && editorFocus && renameInputVisible"
},
{
"key": "f2",
"command": "debug.renameWatchExpression",
"when": "watchExpressionsFocused"
},
{
"key": "enter",
"command": "-debug.renameWatchExpression",
"when": "watchExpressionsFocused"
},
{
"key": "shift+cmd+f2",
"command": "git.renameBranch"
},
{
"key": "cmd+\\",
"command": "-workbench.action.splitEditor"
},
{
"key": "cmd+\\",
"command": "-workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "cmd+\\",
"command": "workbench.explorer.fileView.focus"
},
{
"key": "cmd+\\",
"command": "workbench.view.explorer"
},
{
"key": "shift+cmd+e",
"command": "-workbench.view.explorer"
},
{
"key": "cmd+\\",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "shift+cmd+\\",
"command": "-editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+\\",
"command": "workbench.files.action.focusFilesExplorer"
},
{
"key": "shift+cmd+d",
"command": "-workbench.view.debug"
},
{
"key": "shift+cmd+d",
"command": "duplicate.execute"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment