Open two instances of a file in a single Visual Studio session
Open two instances of a file in a single Visual Studio session
Open two instances of a file in a single Visual Studio session
Re: Open two instances of a file in a single Visual Studio session
Visual Studio
Here's how to do it...
- Select the tab you want two copies of
- Select menu *Window* → *New Window* from the menu.
[](https://i.sstatic.net/wCyoJ.png)
- Right click the new tab and select *New Vertical Tab Group*
[](https://i.sstatic.net/YknDS.png)
If *New Window* is not listed in the *Window menu note that the command does exist, even as of Visual Studio 2017. Add it to the *Window* menu using menu *Tools* → *Customize* → *Commands*. At that point decide where to put the *New Window* command and select *Add Command*.
VS Code
In Visual Studio Code version 1.25.1 and later
**Way 1**
You can simply left click on your file in the side-panel (explorer) and press Ctrl + Enter.
**Way 2**
Simply right click on your file in the Visual Studio Code side-panel (explorer) and select the first option *open to the side*.
Here's how to do it...
- Select the tab you want two copies of
- Select menu *Window* → *New Window* from the menu.
[](https://i.sstatic.net/wCyoJ.png)
- Right click the new tab and select *New Vertical Tab Group*
[](https://i.sstatic.net/YknDS.png)
If *New Window* is not listed in the *Window menu note that the command does exist, even as of Visual Studio 2017. Add it to the *Window* menu using menu *Tools* → *Customize* → *Commands*. At that point decide where to put the *New Window* command and select *Add Command*.
VS Code
In Visual Studio Code version 1.25.1 and later
**Way 1**
You can simply left click on your file in the side-panel (explorer) and press Ctrl + Enter.
**Way 2**
Simply right click on your file in the Visual Studio Code side-panel (explorer) and select the first option *open to the side*.