Skip to content

Instantly share code, notes, and snippets.

@brandur
Created September 8, 2019 21:01
Show Gist options
  • Save brandur/2f707e0d7a433983902672c117d95a68 to your computer and use it in GitHub Desktop.
Save brandur/2f707e0d7a433983902672c117d95a68 to your computer and use it in GitHub Desktop.
VS Code Settings
[
//
// Ctrl + j/k for up/down in ALL the places
//
{
"key": "ctrl+j",
"command": "cursorDown",
"when": "textInputFocus"
},
{
"key": "ctrl+k",
"command": "cursorUp",
"when": "textInputFocus"
},
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+k",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
{
"key": "ctrl+j",
"command": "list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "ctrl+k",
"command": "list.focusUp",
"when": "listFocus && !inputFocus"
},
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+j",
"command": "showNextParameterHint",
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
},
{
"key": "ctrl+k",
"command": "showPrevParameterHint",
"when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
},
//
// Alternate way to close quick open
//
{
"key": "ctrl+c",
"command": "workbench.action.closeQuickOpen",
"when": "inQuickOpen"
},
//
// Alternate access to quick open
//
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen"
},
//
// Alternate confirm for quick open
//
{
"key": "ctrl+t",
"command": "workbench.action.acceptSelectedQuickOpenItem",
"when": "inQuickOpen"
},
//
// Navigate between panes
//
{
"key": "cmd+k left",
"command": "workbench.action.navigateLeft"
},
{
"key": "cmd+k right",
"command": "workbench.action.navigateRight"
},
{
"key": "cmd+k up",
"command": "workbench.action.navigateUp"
},
{
"key": "cmd+k down",
"command": "workbench.action.navigateDown"
}
]
{
"update.mode": "none",
"editor.fontSize": 11,
"editor.formatOnSave": true,
"vim.useSystemClipboard": true,
"go.useLanguageServer": true,
"window.zoomLevel": -1,
"vim.hlsearch": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment