Hotkey to move a tab from one of two split editors to another?

Visual Studio-Code

Visual Studio-Code Problem Overview


Say I split my editor into two halves, left and right, and I wanna move a file that is opened in a tab from the left-hand side editor to the right one and vice versa.

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

Windows: Ctrl+Alt+/

Mac: Ctrl+Cmd+/

Command names:

  • workbench.action.moveEditorToNextGroup View: Move Editor into Next Group

  • workbench.action.moveEditorToPreviousGroup View: Move Editor into Previous Group

Extra:

  • workbench.action.moveEditorToAboveGroup View: Move Editor into Above Group
  • workbench.action.moveEditorToBelowGroup View: Move Editor into Below Group
  • workbench.action.moveEditorToFirstGroup View: Move Editor into First Group
  • workbench.action.moveEditorToLastGroup View: Move Editor into Last Group

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionkywView Question on Stackoverflow
Solution 1 - Visual Studio-CodeAlexView Answer on Stackoverflow