Skip to content

Instantly share code, notes, and snippets.

@philippta
Last active October 27, 2023 08:41
Show Gist options
  • Save philippta/d4193a7bbee78e401cf4126fa4119d19 to your computer and use it in GitHub Desktop.
Save philippta/d4193a7bbee78e401cf4126fa4119d19 to your computer and use it in GitHub Desktop.
keybindings
[
{
"key": "cmd+[Semicolon]",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+shift+[Equal]",
"command": "-workbench.action.terminal.toggleTerminal"
},
{
"key": "shift+cmd+d",
"command": "-workbench.view.debug"
},
{
"key": "shift+cmd+d",
"command": "editor.action.duplicateSelection"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeGroup",
"when": "activeEditorGroupEmpty && multipleEditorGroups"
},
{
"key": "cmd+w",
"command": "editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "cmd+[Backslash]",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+7",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+down",
"command": "-cursorBottomSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+shift+space",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "alt+enter",
"command": "editor.action.autoFix",
"when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)quickfix\\b/"
},
{
"key": "alt+cmd+[Period]",
"command": "-editor.action.autoFix",
"when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)quickfix\\b/"
},
{
"key": "shift+cmd+f",
"command": "-workbench.action.findInFiles"
},
{
"key": "shift+cmd+f",
"command": "filesExplorer.findInFolder",
"when": "explorerResourceIsFolder && explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "shift+alt+f",
"command": "-filesExplorer.findInFolder",
"when": "explorerResourceIsFolder && explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "[Comma]",
"command": "-dance.ignore",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"key": "shift+[Comma]",
"command": "-dance.selections.reduce",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"key": "[Backslash]",
"command": "dance.selections.pipe.replace",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"key": "ctrl+alt+[Backquote]",
"command": "-dance.selections.pipe.replace",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"key": "g d",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor && dance.mode == 'normal'"
},
{
"key": "g i",
"command": "editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor && dance.mode == 'normal'"
},
{
"key": "g r",
"command": "editor.action.goToReferences",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor && dance.mode == 'normal'"
},
{
"key": "g g",
"command": "workbench.action.navigateBackInNavigationLocations",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"key": "[Comma] s",
"command": "workbench.action.files.save",
"when": "editorTextFocus && dance.mode == 'normal'"
},
{
"key": "ctrl+w",
"command": "-workbench.action.switchWindow"
},
{
"key": "cmd+q",
"command": "-workbench.action.quit"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment