Is there a quick change tabs function in Visual Studio Code?

后端 未结 18 1642
星月不相逢
星月不相逢 2020-12-07 06:26

The current function of giving me a dropdown option of which tab to choose is just so annoying. Is there a possibility to remove it so the tabs would work like in some moder

相关标签:
18条回答
  • 2020-12-07 07:09

    When using Visual Studio Code on Linux/Windows, you can use CTRL + PAGE_UP to switch to the previous tab, and CTRL + PAGE_DN to switch to the next tab. You also have the ability to switch to tabs based on their (non-zero relative) index. You can do so, by pressing and holding ALT , followed by a number (1 through 9).

    For more details: check here

    0 讨论(0)
  • 2020-12-07 07:09

    @SC_Chupacabra has correct answer for modifying behavior.

    I generally prefer CTRL + PAGE UP / DOWN for my navigation, rather than using the TAB key.

        {
            "key": "ctrl+pageUp",
            "command": "workbench.action.nextEditor"
        },
        {
            "key": "ctrl+pageDown",
            "command": "workbench.action.previousEditor"
        }
    
    0 讨论(0)
  • 2020-12-07 07:14

    for linux... I use ctrl+pageUp or pageDown

    0 讨论(0)
  • 2020-12-07 07:15

    Visual Studio Code v1.35.0 let's you set the (Ctrl+Tab) / (Shift+Ctrl+Tab) key sequences to sequentially switch between editors by binding those keys sequences to the commands "View: Open Next Editor" and "View: Open Previous Editor", respectively.

    On macOS:

    1. Navigate to: Code > Preferences > Keyboard Shortcuts
    2. Search or navigate down to the following two options:
      • View: Open Next Editor
      • View: Open Previous Editor
    3. Change both keybindings to the desired key sequence.
      • View: Open Next Editor -> (Ctrl+Tab)
      • View: Open Previous Editor -> (Shift+Ctrl+Tab)
    4. You will likely run into a conflicting binding. If so, take note of the command and reassign or remove the existing key binding.

    If you mess up, you can always revert back to the default state for a given binding by right-clicking on any keybinding and selecting "Reset Keybinding".

    0 讨论(0)
  • 2020-12-07 07:17

    If you are using the VSCodeVim extension, you can use the Vim key shortcuts:

    Next tab: gt

    Prior tab: gT

    Numbered tab: nnngt

    0 讨论(0)
  • 2020-12-07 07:17

    Windows

    previous

    Ctrl + Shift + Tab

    Next

    Ctrl + Tab

    Mac OS

    previous

    Shift+ Cmd + [

    Next

    Shift + Cmd + ]

    0 讨论(0)
提交回复
热议问题