Skip to content

Instantly share code, notes, and snippets.

@gegehprast
Last active April 21, 2025 22:02
Show Gist options
  • Save gegehprast/9a28cf1e6047abc5af2c8b43f064abbe to your computer and use it in GitHub Desktop.
Save gegehprast/9a28cf1e6047abc5af2c8b43f064abbe to your computer and use it in GitHub Desktop.
VS Code Key Bind
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+f5",
"command": "workbench.action.debug.stop",
"when": "inDebugMode && !focusedSessionIsAttach"
},
{
"key": "shift+f5",
"command": "-workbench.action.debug.stop",
"when": "inDebugMode && !focusedSessionIsAttach"
},
{
"key": "ctrl+shift+f5",
"command": "workbench.action.debug.disconnect",
"when": "focusedSessionIsAttach && inDebugMode"
},
{
"key": "shift+f5",
"command": "-workbench.action.debug.disconnect",
"when": "focusedSessionIsAttach && inDebugMode"
},
{
"key": "shift+f5",
"command": "workbench.action.debug.restart",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+f5",
"command": "-workbench.action.debug.restart",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+alt+e",
"command": "workbench.view.remote"
},
{
"key": "a",
"command": "explorer.newFile",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "shift+a",
"command": "explorer.newFolder",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "k",
"command": "list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "j",
"command": "-list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "i",
"command": "list.focusUp",
"when": "listFocus && !inputFocus"
},
{
"key": "k",
"command": "-list.focusUp",
"when": "listFocus && !inputFocus"
},
{
"key": "j",
"command": "list.collapse",
"when": "listFocus && !inputFocus"
},
{
"key": "h",
"command": "-list.collapse",
"when": "listFocus && !inputFocus"
},
{
"key": "i",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
},
{
"key": "k",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
},
{
"key": "ctrl+l",
"command": "acceptSelectedSuggestion",
"when": "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && textInputFocus"
},
{
"key": "alt+i",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+k",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment