Skip to content

Instantly share code, notes, and snippets.

@simonwongwong
Last active December 19, 2025 18:49
Show Gist options
  • Select an option

  • Save simonwongwong/e9b7f1d09e0b26697947e8277d82cd74 to your computer and use it in GitHub Desktop.

Select an option

Save simonwongwong/e9b7f1d09e0b26697947e8277d82cd74 to your computer and use it in GitHub Desktop.
change ctrl+tab behaviour in VSCODE to expected next/previous behaviour (like on chrome)
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "shift+cmd+]",
"command": "-workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "shift+cmd+[",
"command": "-workbench.action.previousEditor"
},
{
"key": "cmd+g",
"command": "extension.openInGitHub"
},
{
"key": "ctrl+l g",
"command": "-extension.openInGitHub"
},
{
"key": "shift+cmd+g",
"command": "gitlens.diffWithRevisionFrom"
},
{
"key": "cmd+t",
"command": "workbench.action.terminal.new",
"when": "terminalProcessSupported || terminalWebExtensionContributedProfile"
},
{
"key": "ctrl+shift+`",
"command": "-workbench.action.terminal.new",
"when": "terminalProcessSupported || terminalWebExtensionContributedProfile"
},
{
"key": "cmd+\\",
"command": "editor.action.inlineSuggest.trigger",
"when": "config.github.copilot.inlineSuggest.enable && editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"
},
{
"key": "alt+\\",
"command": "-editor.action.inlineSuggest.trigger",
"when": "config.github.copilot.inlineSuggest.enable && editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"
},
{
"key": "cmd+\\",
"command": "-workbench.action.terminal.split",
"when": "terminalFocus && terminalProcessSupported || terminalFocus && terminalWebExtensionContributedProfile"
},
{
"key": "cmd+\\",
"command": "-workbench.action.splitEditor"
},
{
"key": "cmd+\\",
"command": "-workbench.action.terminal.splitActiveTab",
"when": "terminalProcessSupported && terminalTabsFocus"
},
{
"key": "f13",
"command": "editor.action.inlineSuggest.trigger",
"when": "config.github.copilot.inlineSuggest.enable && editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"
},
{
"key": "cmd+'",
"command": "github.copilot.chat.attachFile"
},
{
"key": "shift+cmd+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "shift+cmd+c",
"command": "copyRelativeFilePath",
"when": "!editorFocus"
},
{
"key": "shift+alt+cmd+c",
"command": "-copyRelativeFilePath",
"when": "!editorFocus"
},
{
"key": "shift+cmd+c",
"command": "copyRelativeFilePath",
"when": "editorFocus"
},
{
"key": "cmd+k shift+alt+cmd+c",
"command": "-copyRelativeFilePath",
"when": "editorFocus"
},
{
"key": "shift+cmd+\\",
"command": "-workbench.action.terminal.focusTabs",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported || terminalHasBeenCreated && terminalTabsFocus || terminalProcessSupported && terminalTabsFocus"
},
{
"key": "ctrl+t",
"command": "workbench.action.terminal.split",
"when": "terminalFocus && terminalProcessSupported || terminalFocus && terminalWebExtensionContributedProfile"
},
{
"key": "ctrl+shift+5",
"command": "-workbench.action.terminal.split",
"when": "terminalFocus && terminalProcessSupported || terminalFocus && terminalWebExtensionContributedProfile"
},
{
"key": "shift+cmd+\\",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+down",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+t",
"command": "-editor.action.transposeLetters",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "cmd+k",
"command": "-aipopup.action.modal.generate",
"when": "editorFocus && !composerBarIsVisible"
},
{
"key": "alt+g",
"command": "workbench.view.scm"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm",
"when": "workbench.scm.active"
},
{
"key": "shift+cmd+l",
"command": "-addCursorsAtSearchResults",
"when": "fileMatchOrMatchFocus && searchViewletVisible"
},
{
"key": "shift+cmd+l",
"command": "-aichat.insertselectionintochat"
},
{
"key": "shift+cmd+l",
"command": "-composer.newAgentChat"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment