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

Viewed 2707

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.

2 Answers

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

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!

Related