Reikken
Reikken

Reputation: 333

VSCode - How do I split a file view to a separate window?

When I drag a split tab over to a separate window, it opens a separate instance of the file. Any changes in this new instance only show in the other instance upon saving the file.

I want to open the same instance of a file to a separate window. where my edits in one view will show up in the other view instantly. The same behavior I get when splitting the view in a window.

Upvotes: 12

Views: 10751

Answers (3)

Austin Ulfers
Austin Ulfers

Reputation: 479

This is now possible since October 2023! https://code.visualstudio.com/updates/v1_84#_floating-editor-windows

Upvotes: 2

TheRealSheldon
TheRealSheldon

Reputation: 81

I would also love to see a Split to New Window feature. A workaround while we wait is as follows:

  • Open the source file you want to move
  • Open a new Window via File -> New Window
  • Grab the file by its name tab and drag it into the new window.
  • Close the file in the original window

Upvotes: 6

assensi
assensi

Reputation: 360

These are the steps:

  1. Open the file you are interested in splitting.
  2. Find the icon to the left of the three dots on the top right corner:

enter image description here

When you hover it it says 'Split editor Right'.

  1. Click on it and it will open a copy to the right where you will be able to type and see on real time the modifications on the file to the left.

Ready to go!

Upvotes: -3

Related Questions