Skip to content

Instantly share code, notes, and snippets.

@andyvauliln
Created November 19, 2018 09:34
Show Gist options
  • Select an option

  • Save andyvauliln/d68198b374fc70640a38f5a659e1af09 to your computer and use it in GitHub Desktop.

Select an option

Save andyvauliln/d68198b374fc70640a38f5a659e1af09 to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to overwrite the defaults
[
//windows
{
"key": "cmd+o",
"command": "workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+n",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "cmd+h",
"command": "workbench.files.action.focusFilesExplorer"
},
{
"key": "shift+cmd+h",
"command": "workbench.action.toggleSidebarVisibility"
},
//moving
{
"key": "ctrl+l",
"command": "editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+j",
"command": "editor.action.outdentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+i",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+,",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
// Navigation
{
"key": "cmd+i",
"command": "cursorUp",
"when": "textInputFocus"
},
{
"key": "cmd+k",
"command": "cursorDown",
"when": "textInputFocus"
},
{
"key": "cmd+l",
"command": "cursorWordEndRight",
"when": "textInputFocus"
},
{
"key": "cmd+j",
"command": "cursorWordStartLeft",
"when": "textInputFocus"
},
// selection
{
"key": "shift+cmd+j",
"command": "cursorColumnSelectLeft",
"when": "textInputFocus"
},
{
"key": "shift+cmd+l",
"command": "cursorColumnSelectRight",
"when": "textInputFocus"
},
{
"key": "shift+cmd+l",
"command": "cursorWordEndRightSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+j",
"command": "cursorWordStartLeftSelect",
"when": "textInputFocus"
},
//Other
{
"key": "shift+cmd+o",
"command": "workbench.action.files.openFileFolder"
},
{
"key": "shift+cmd+t",
"command": "workbench.action.newWindow"
},
{
"key": "cmd+t",
"command": "workbench.action.files.newUntitledFile"
},
{
"key": "shift+cmd+n",
"command": "-workbench.action.newWindow"
},
{
"key": "cmd+space",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+\\",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
//List navigation
{
"key": "cmd+k",
"command": "list.select",
"when": "listFocus && !inputFocus"
},
{
"key": "cmd+,",
"command": "list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "cmd+i",
"command": "list.focusUp",
"when": "listFocus && !inputFocus"
},
//Coping
{
"key": "cmd+\\",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+t",
"command": "workbench.action.editor.changeLanguageMode"
},
{
"key": "cmd+k m",
"command": "-workbench.action.editor.changeLanguageMode"
},
//short cuts
{
"key": "cmd+y",
"command": "workbench.action.openGlobalKeybindings"
},
{
"key": "cmd+k cmd+s",
"command": "-workbench.action.openGlobalKeybindings"
},
{
"key": "shift+cmd+y",
"command": "workbench.action.openGlobalSettings"
},
//Finder
{
"key": "shift+cmd+k",
"command": "revealFileInOS",
"when": "!editorFocus"
},
{
"key": "alt+cmd+r",
"command": "-revealFileInOS",
"when": "!editorFocus"
},
{
"key": "shift+cmd+j",
"command": "workbench.files.action.collapseExplorerFolders",
"when": "!editorFocus"
},
// save as
{
"key": "shift+cmd+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "alt+cmd+s",
"command": "-workbench.action.files.saveAll"
},
{
"key": "alt+cmd+s",
"command": "workbench.action.files.saveAs"
},
{
"key": "shift+cmd+s",
"command": "-workbench.action.files.saveAs"
},
{
"key": "shift+alt+o",
"command": "outline.focus"
},
{
"key": "alt+left",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack"
},
{
"key": "alt+right",
"command": "workbench.action.navigateForward"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward"
},
{
"key": "alt+r",
"command": "code-runner.run"
},
{
"key": "ctrl+alt+n",
"command": "-code-runner.run"
},
{
"key": "alt+up",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "-editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "alt+down",
"command": "editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+f12",
"command": "-editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "shift+alt+right",
"command": "editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+f12",
"command": "-editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "cmd+4",
"command": "git.commitAll"
},
{
"key": "cmd+5",
"command": "git.push"
},
{
"key": "cmd+3",
"command": "git.stageAll"
},
{
"key": "cmd+,",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "down",
"command": "-selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "cmd+i",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "cmd+up",
"command": "-selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "shift+cmd+y",
"command": "workbench.action.openSettings"
},
{
"key": "cmd+,",
"command": "-workbench.action.openSettings"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+i",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "shift+alt+,",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+,",
"command": "cursorColumnSelectDown",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+down",
"command": "-cursorColumnSelectDown",
"when": "textInputFocus"
},
{
"key": "shift+cmd+i",
"command": "cursorColumnSelectUp",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+up",
"command": "-cursorColumnSelectUp",
"when": "textInputFocus"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+;",
"command": "cursorLeftSelect",
"when": "textInputFocus"
},
{
"key": "shift+left",
"command": "-cursorLeftSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+'",
"command": "cursorRightSelect",
"when": "textInputFocus"
},
{
"key": "shift+right",
"command": "-cursorRightSelect",
"when": "textInputFocus"
},
{
"key": "cmd+;",
"command": "cursorLeft",
"when": "textInputFocus"
},
{
"key": "left",
"command": "-cursorLeft",
"when": "textInputFocus"
},
{
"key": "cmd+'",
"command": "cursorRight",
"when": "textInputFocus"
},
{
"key": "right",
"command": "-cursorRight",
"when": "textInputFocus"
},
{
"key": "cmd+,",
"command": "workbench.action.interactivePlayground.arrowDown",
"when": "interactivePlaygroundFocus && !editorTextFocus"
},
{
"key": "down",
"command": "-workbench.action.interactivePlayground.arrowDown",
"when": "interactivePlaygroundFocus && !editorTextFocus"
},
{
"key": "cmd+,",
"command": "showNextParameterHint",
"when": "editorTextFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
},
{
"key": "down",
"command": "-showNextParameterHint",
"when": "editorTextFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
},
{
"key": "cmd+,",
"command": "settings.action.focusSettingsFromSearch",
"when": "inSettingsSearch"
},
{
"key": "down",
"command": "-settings.action.focusSettingsFromSearch",
"when": "inSettingsSearch"
},
{
"key": "cmd+,",
"command": "settings.action.focusSettingsFile",
"when": "inSettingsSearch"
},
{
"key": "down",
"command": "-settings.action.focusSettingsFile",
"when": "inSettingsSearch"
},
{
"key": "cmd+,",
"command": "outline.focusDownHighlighted",
"when": "outlineFiltered && outlineFocused"
},
{
"key": "down",
"command": "-outline.focusDownHighlighted",
"when": "outlineFiltered && outlineFocused"
},
{
"key": "cmd+,",
"command": "notifications.focusNextToast",
"when": "notificationFocus && notificationToastsVisible"
},
{
"key": "down",
"command": "-notifications.focusNextToast",
"when": "notificationFocus && notificationToastsVisible"
},
{
"key": "down",
"command": "-list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "cmd+,",
"command": "keybindings.editor.focusKeybindings",
"when": "inKeybindings && inKeybindingsSearch"
},
{
"key": "down",
"command": "-keybindings.editor.focusKeybindings",
"when": "inKeybindings && inKeybindingsSearch"
},
{
"key": "cmd+,",
"command": "history.showNext",
"when": "historyNavigationEnabled && historyNavigationWidget"
},
{
"key": "down",
"command": "-history.showNext",
"when": "historyNavigationEnabled && historyNavigationWidget"
},
{
"key": "down",
"command": "-cursorDown",
"when": "textInputFocus"
},
{
"key": "shift+cmd+g",
"command": "workbench.view.extension.gitlens"
},
{
"key": "ctrl+n",
"command": "-selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+n",
"command": "-list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "cmd+,",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+n",
"command": "-workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "cmd+i",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
{
"key": "cmd+r",
"command": "workbench.action.terminal.clear",
"when": "terminalFocus"
},
{
"key": "cmd+k",
"command": "-workbench.action.terminal.clear",
"when": "terminalFocus"
},
{
"key": "f12",
"command": "editor.debug.action.runToCursor"
},
{
"key": "cmd+,",
"command": "indentation-level-movement.moveDown",
"when": "editorTextFocus"
},
{
"key": "alt+down",
"command": "-indentation-level-movement.moveDown",
"when": "editorTextFocus"
},
{
"key": "shift+alt+l",
"command": "indentation-level-movement.moveRight",
"when": "editorTextFocus"
},
{
"key": "alt+right",
"command": "-indentation-level-movement.moveRight",
"when": "editorTextFocus"
},
{
"key": "cmd+i",
"command": "indentation-level-movement.moveUp",
"when": "editorTextFocus"
},
{
"key": "alt+up",
"command": "-indentation-level-movement.moveUp",
"when": "editorTextFocus"
},
{
"key": "cmd+j",
"command": "selectPartOfWord.moveLeft"
},
{
"key": "ctrl+alt+left",
"command": "-selectPartOfWord.moveLeft"
},
{
"key": "cmd+l",
"command": "selectPartOfWord.moveRight"
},
{
"key": "ctrl+alt+right",
"command": "-selectPartOfWord.moveRight"
},
{
"key": "shift+cmd+j",
"command": "selectPartOfWord.selectLeft"
},
{
"key": "ctrl+shift+alt+left",
"command": "-selectPartOfWord.selectLeft"
},
{
"key": "shift+cmd+l",
"command": "selectPartOfWord.selectRight"
},
{
"key": "ctrl+shift+alt+right",
"command": "-selectPartOfWord.selectRight"
},
{
"key": "ctrl+e",
"command": "-cursorLineEnd",
"when": "textInputFocus"
},
{
"key": "shift+cmd+n",
"command": "expandLineSelection",
"when": "textInputFocus"
},
{
"key": "cmd+i",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{
"key": "shift+cmd+k",
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+cmd+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "f6",
"command": "go.test.cursor"
},
{
"key": "cmd+e",
"command": "gitlens.diffWithPrevious",
"when": "editorTextFocus && !isInDiffEditor && gitlens:keymap == 'alternate' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "alt+,",
"command": "-gitlens.diffWithPrevious",
"when": "editorTextFocus && !isInDiffEditor && gitlens:keymap == 'alternate' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "cmd+e",
"command": "-actions.findWithSelection"
},
{
"key": "cmd+e",
"command": "gitlens.diffWithPrevious",
"when": "editorTextFocus && !isInDiffEditor && gitlens:keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "alt+cmd+g ,",
"command": "-gitlens.diffWithPrevious",
"when": "editorTextFocus && !isInDiffEditor && gitlens:keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "shift+cmd+e",
"command": "gitlens.diffWithPreviousInDiff",
"when": "isInDiffEditor && gitlens:keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "alt+cmd+g ,",
"command": "-gitlens.diffWithPreviousInDiff",
"when": "isInDiffEditor && gitlens:keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "cmd+r",
"command": "gitlens.diffWithNext",
"when": "editorTextFocus && gitlens:keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "alt+cmd+g .",
"command": "-gitlens.diffWithNext",
"when": "editorTextFocus && gitlens:keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "alt+tab",
"command": "workbench.action.switchWindow"
},
{
"key": "ctrl+w",
"command": "-workbench.action.switchWindow"
},
{
"key": "cmd+k",
"command": "workbench.action.acceptSelectedQuickOpenItem",
"when": "inQuickOpen"
},
{
"key": "tab",
"command": "workbench.files.action.focusOpenEditorsView"
},
{
"key": "cmd+k e",
"command": "-workbench.files.action.focusOpenEditorsView"
},
{
"key": "cmd+u",
"command": "workbench.action.focusNextGroup"
},
{
"key": "shift+alt+u",
"command": "workbench.action.toggleEditorGroupLayout"
},
{
"key": "alt+cmd+0",
"command": "-workbench.action.toggleEditorGroupLayout"
},
{
"key": "shift+cmd+u",
"command": "workbench.action.newGroupRight"
},
{
"key": "cmd+j",
"command": "copyFilePath",
"when": "!editorFocus"
},
{
"key": "alt+cmd+c",
"command": "-copyFilePath",
"when": "!editorFocus"
},
{
"key": "cmd+f4",
"command": "workbench.action.reopenClosedEditor"
},
{
"key": "shift+cmd+t",
"command": "-workbench.action.reopenClosedEditor"
},
{
"key": "cmd+l",
"command": "list.toggleExpand",
"when": "listFocus && !inputFocus"
},
{
"key": "space",
"command": "-list.toggleExpand",
"when": "listFocus && !inputFocus"
},
{
"key": "shift+cmd+,",
"command": "list.focusPageDown",
"when": "listFocus && !inputFocus"
},
{
"key": "pagedown",
"command": "-list.focusPageDown",
"when": "listFocus && !inputFocus"
},
{
"key": "shift+cmd+i",
"command": "list.focusPageUp",
"when": "listFocus && !inputFocus"
},
{
"key": "pageup",
"command": "-list.focusPageUp",
"when": "listFocus && !inputFocus"
},
{
"key": "cmd+q",
"command": "-workbench.action.quit"
},
{
"key": "cmd+q",
"command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
"key": "shift+cmd+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "shift+cmd+w",
"command": "workbench.action.closeEditorsInOtherGroups"
},
{
"key": "cmd+]",
"command": "workbench.action.nextEditor"
},
{
"key": "shift+cmd+]",
"command": "-workbench.action.nextEditor"
},
{
"key": "cmd+[",
"command": "workbench.action.previousEditor"
},
{
"key": "shift+cmd+[",
"command": "-workbench.action.previousEditor"
},
{
"key": "alt+w",
"command": "workbench.action.closeOtherEditors"
},
{
"key": "alt+cmd+t",
"command": "-workbench.action.closeOtherEditors"
},
{
"key": "alt+n",
"command": "workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "cmd+\\",
"command": "-workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "cmd+w",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
},
{
"key": "cmd+n",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "tab",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
}
]
{
"git.autofetch": true,
"editor.minimap.enabled": false,
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"python.jediEnabled": false,
"jupyter.appendResults": true,
"python.formatting.autopep8Args": [],
"python.formatting.autopep8Path": "autopep8",
"python.formatting.provider": "autopep8",
"python.linting.flake8Enabled": true,
"eslint.autoFixOnSave": true,
"code-runner.enableAppInsights": false,
"code-runner.fileDirectoryAsCwd": true,
"code-runner.runInTerminal": true,
"files.maxMemoryForLargeFilesMB": 10000,
"solidity.packageDefaultDependenciesContractsDirectory": "contracts",
"solidity.packageDefaultDependenciesDirectory": "contrants",
"typescript.validate.enable": false,
"typescript.format.enable": false,
"eslint.validate": [
"javascript",
{
"language": "vue",
"autoFix": true
},
"solidity",
{
"language": "solidity",
"autoFix": true
}
],
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"editor.wordWrapColumn": 120,
"html.format.wrapLineLength": 180,
"workbench.editor.showTabs": true,
"git.enableSmartCommit": true,
"go.testTimeout": "180s",
"go.gotoSymbol.includeGoroot": true,
"go.gotoSymbol.includeImports": true,
"go.formatTool": "gofmt",
"go.testTags": "v",
"go.gocodeAutoBuild": true,
"go.docsTool": "gogetdoc",
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.useLanguageServer": false,
"go.buildOnSave": "package",
"go.lintOnSave": "package",
"go.vetOnSave": "package",
"go.autocompleteUnimportedPackages": true,
"go.languageServerExperimentalFeatures": {
"format": true,
"autoComplete": true
},
"gitlens.gitExplorer.files.layout": "list"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment