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

后端 未结 18 1815
星月不相逢
星月不相逢 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: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".

提交回复
热议问题