1

All I've been able to find is cmd + K O, which opens the active file in another window. Searching for a keyboard shortcut to open the active file in a new tab in a split window.

I want to start with one tab open with index.js, and end up with two tabs, each with index.js, ideally in a split window.

starball
  • 20,030
  • 7
  • 43
  • 238
charmingduchess
  • 137
  • 1
  • 1
  • 8
  • If you search for `split editor` in the Gear icon/Keyboard Shortcuts editor you'll see a few options for splitting the current file (in the same group, down, orthogonal, etc.). – Mark Feb 14 '23 at 15:50

1 Answers1

1

The keybinding command IDs you are looking for are the ones that start with the prefix workbench.action.splitEditor. You can open your keyboard settings file with the Preferences: Open Keyboard Shortcuts (JSON) command, or open the keyboard shortcut editor GUI with the Preferences: Open Keyboard Shortcuts command.

To learn more about how to customize keybindings, see https://code.visualstudio.com/docs/getstarted/keybindings.

starball
  • 20,030
  • 7
  • 43
  • 238