9

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.

EDIT: The answer is that it's impossible.

Reikken
  • 191
  • 3
  • 6
  • Amusingly, using the Live Share extension and starting a live share session with myself works for this. Maybe there's a more suitable extension. – Reikken Jun 26 '20 at 01:56
  • Does this answer your question? [Visual Studio Code open tab in new window](https://stackoverflow.com/questions/43362133/visual-studio-code-open-tab-in-new-window) – david.pfx Jul 11 '23 at 07:38
  • I don't see anything in there that addresses this. Or I guess it does answer the question, by confirming that's it's not possible. Since it links to a github issue that has been open for 7 years. – Reikken Jul 11 '23 at 21:21
  • I think the accepted answer in that question is good enough to satisfy most users, and also confirms there is no real answer after all these years. – david.pfx Jul 12 '23 at 23:52
  • For this question, while it's not in the title, the body of the text is very specific about the fact that it needs to be the same instance, so the other question's accepted answer definitely does not apply. The second answer is more applicable, however, since that is the one that confirms that it's not possible. – Reikken Jul 13 '23 at 05:28

2 Answers2

5

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
-2

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!

assensi
  • 352
  • 1
  • 6
  • 17