Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get a code window to split vertically in Visual Studio 2008? (not HTML mode)

In Visual Studio 2008, it seems that Window -> Split only gives me a horizontal split, and Window -> New horizontal tab group does not allow me to edit the same file in both panes.

Note that I am talking about C# code windows, not HTML editing mode.

I want to edit the same file in two horizontally arranged panes.

Is this possible? Free add-ons are fine.

Edit: I have CodeRush Express installed, and it seems to have done something to my code window borders.

Edit #2: It's not CodeRush. I tried on VM with no CodeRush, and I have exactly the same issue.

like image 598
Blorgbeard Avatar asked Mar 23 '09 03:03

Blorgbeard


People also ask

How do I split a window vertically in Visual Studio?

If you want to split the same class: Tools -> Options -> Environment -> Keyboard -> search by Window. Split and add a new shortcut. Show activity on this post. In visual Studio 2015 right click tab part where file name is written and select vertical split or horizontal split.

How do you split and code vertically?

You can open as many editors as you like side by side vertically and horizontally. If you already have one editor open, there are multiple ways of opening another editor to the side of the existing one: Alt click on a file in the Explorer. Ctrl+\ to split the active editor into two.


1 Answers

Ok, I found the solution here.

The answer is:

  1. Window -> New Window
  2. Window -> New Vertical Tab Group

This duplicates the current tab so you'll get [Form1.cs:1] and [Form1.cs:2] tabs; and then you can use a vertical tab group to view them side by side.

like image 61
Blorgbeard Avatar answered Sep 29 '22 04:09

Blorgbeard