kyw
kyw

Reputation: 7533

VS Code: hotkey to move a tab from one of two split editors to another?

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.

Upvotes: 155

Views: 40762

Answers (2)

Kristopher
Kristopher

Reputation: 51

For those who are attempting this in a Windows Remote Desktop window it will not work. I struggled with this for quite some time before realizing that the Ctrl+Alt+</Arrow keys/> shortcut was not reaching my remote desktop session :(

I found the reason on stackExchange - https://superuser.com/questions/327866/remote-desktop-sending-ctrl-alt-left-arrow-ctrl-alt-right-arrow-to-the-remote-p

There are some workarounds that are provided in this thread, but none that I could use inside my company. My only solution is to re-map the command to a different shortcut that isn't being consumed by RDP.

Hope it helps someone!

Upvotes: 5

Alex
Alex

Reputation: 67531

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

Upvotes: 303

Related Questions