Skip to content

Instantly share code, notes, and snippets.

@jyydev
Last active June 30, 2021 12:10
Show Gist options
  • Save jyydev/006fa1f698cde863e62ff916bc17147b to your computer and use it in GitHub Desktop.
Save jyydev/006fa1f698cde863e62ff916bc17147b to your computer and use it in GitHub Desktop.
VSCode > shortcut keys > tabs, open editors > change to next, previous tab

VSCode > shortcut keys > tabs, open editors > change to next, previous tab

Quickly change to next tab and previous tab with keyboard shortcuts.

By default, VS Code cycle through tabs through ctrl+tab.

Solution

  1. Open command palette: cmd+shift+p

  2. Enter: Preferences: Open Keyboard Shortcuts (JSON)

  3. Add this code to the json file:

    {
        "key": "ctrl+tab",
        "command": "workbench.action.nextEditor"
    },
    {
        "key": "ctrl+shift+tab",
        "command": "workbench.action.previousEditor"
    }

P.S.

This should be the default setting for VS Code instead.

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment