Skip to content

Instantly share code, notes, and snippets.

@eddy-geek
Last active March 15, 2026 08:49
Show Gist options
  • Select an option

  • Save eddy-geek/2c32847b464109cba5f8ab9f9ad97c1c to your computer and use it in GitHub Desktop.

Select an option

Save eddy-geek/2c32847b464109cba5f8ab9f9ad97c1c to your computer and use it in GitHub Desktop.
Tweaks to VSCode and Windsurf keybindings

VsCode (home)

[
{ "key": "shift shift",      "command": "workbench.action.quickOpen" },

// default ctrl+k ctrl+s
{ "key": "alt+left",         "command": "workbench.action.navigateBack" },
// default ctrl+shift+-
{ "key": "alt+right",        "command": "workbench.action.navigateForward" },
// default ctrl+k enter
{ "key": "ctrl+3",           "command": "workbench.action.keepEditor" },
//default crl+b, overridden by vim
{ "key": "ctrl+alt+b",       "command": "workbench.action.toggleSidebarVisibility" },
{ "key": "ctrl+alt+shift+b", "command": "workbench.action.toggleActivityBarVisibility" },
{ "key": "ctrl+'",           "command": "workbench.action.quickTextSearch" },

{ "key": "ctrl+j",           "command": "editor.action.joinLines", "when": "editorHasSelection" },
{ "key": "ctrl+shift+j",     "command": "editor.action.joinLines", "when": "editorTextFocus" },
// no default
{ "key": "ctrl+g",           "command": "editor.action.referenceSearch.trigger" },


{ "key": "ctrl+shift+/",     "command": "-windsurf.cascade.switchToNextModel", "when": "!terminalFocus" },
{ "key": "ctrl+shift+/",     "command": "windsurf.openCodeMapView", "when": "codemapsEnabled" },
{ "key": "ctrl+shift+c",     "command": "-windsurf.openCodeMapView", "when": "codemapsEnabled" },
{ "key": "ctrl+shift+c",     "command": "-workbench.action.terminal.openNativeConsole", "when": "!terminalFocus" },
{ "key": "ctrl+[Backslash]", "command": "workbench.action.terminal.focus", "when": "terminalHasBeenCreated" },
{ "key": "ctrl+down",        "command": "-workbench.action.terminal.focus", "when": "accessibilityModeEnabled && accessibleViewOnLastLine && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal' || accessibilityModeEnabled && accessibleViewOnLastLine && terminalProcessSupported && accessibleViewCurrentProviderId == 'terminal'" },
{ "key": "ctrl+shift+alt+a", "command": "git.stage" },
{ "key": "ctrl+shift+g",     "command": "-windsurf.generateCodeMap", "when": "codemapsEnabled" }

]

Windsurf

  • Assign Ctrl+Shift+/ to Windsurf: Open Codemaps instead of Ctrl+Shift+C
  • ...so that this default works again: Ctrl+Shift+C actually works for Terminal: Copy Selection when terminalTextSelectedInFocused || terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected || terminalFocus && terminalTextSelected && terminalTextSelectedInFocused || terminalHasBeenCreated && terminalTextSelected && terminalTextSelectedInFocused || terminalProcessSupported && terminalTextSelected && terminalTextSelectedInFocused
  • Assign Ctrl+[backlash] to Terminal: Focus Terminal when terminalHasBeenCreated (previous was Ctrl+Down when: accessibilityModeEnabled && accessibleViewOnLastLine && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal' || accessibilityModeEnabled && accessibleViewOnLastLine && terminalProcessSupported && accessibleViewCurrentProviderId == 'terminal')
  • Assign Ctrl+Alt+Shift+A to Git: Stage Changes (basically git add current file)
  • Disable Ctrl+Shift+G : Windsurf: Generate Codemap to restore git View: Show Changes

Accessing settings (default)

  • Ctrl+, Windsurf settings
  • Ctrl+Alt+S User Settings
  • Ctrl+K, Ctrl+S Keybindings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment