Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View multiple files in Visual Studio

I just realised that Office 2007 now shows multiple pages per default. I can finally take advantage of that huge monitor I've bought.

Is there a similar feature with Visual Studio?

Something like "View -> Two Pages"

like image 522
Eric Avatar asked Nov 11 '08 02:11

Eric


People also ask

How do I open multiple files in Visual Studio?

Launch VS Code and press the “Ctrl” and “P” keys simultaneously to search for a file to open in the current project. Type in the file name. To open the new file in a temporary tab, click on it once. To open the new file in a separate window that you can choose to close manually, double-click it.

How do I open files side by side in Visual Studio?

Open to the Side (Ctrl+Enter) from the Explorer context menu on a file. Click the Split Editor button in the upper right of an editor. Drag and drop a file to any side of the editor region.

How do I see all files in Visual Studio?

The new experience is available by searching for “Find in Files” or “Replace in Files” in Visual Studio search (Ctrl+Q by default). You can also get to these commands with Ctrl+Shift+F and Ctrl+Shift+H respectively.

How do I open multiple tabs in Visual Studio?

Now that we have enabled support for opening multiple files, we can use our mouse to open multiple files. Double-click the files you want to open in a new tab. Double-click on the files you want to open in the new tab.


1 Answers

You can use "Tab Groups". Visual Studio supports both horizontal and vertical panes (since at least Visual Studio .NET 2002 I believe, I haven't used VS 5 or 6 in ages..)

There are several ways to create a tab group. One way is:

  • Open two files.
  • Grab the tab of one of the files and pull it down and slightly to the side
  • You'll get a menu prompting you if you want to put it in a new horizontal or vertical pane.
  • You can move files between panes by grabbing the tab of the open file and pulling it next to the tabs in the pane you want it in.

Another way is:

  • Click Window
  • Click New Vertical Tab Group

Here is a website demonstrating this with pictures and it even includes showing you how to split pane with the same file. Handy when refactoring!

like image 173
Zach Burlingame Avatar answered Sep 20 '22 15:09

Zach Burlingame