Any way to four tabs opened as in the old MDI way in VS 2013? - visual-studio-2013

I seem to recall that way back in VS 2005 you could open up four documents, for example, and have them laid out in four quadrants.
Is this at all possible for VS 2013?

VS 2013 supports tab groups (tab context menu - New Horizontal/Vertical Tab Group) and floating tabs/tab groups (tab context menu - Float/Float All).
To create four quadrants, you can create an additional vertical tab group in the main VS window + two vertical tab groups in a floating tabs window and position the floating tabs window below the main VS window.

Related

Visual Studio 2020 how to stop filenames from being shortened in the tab

In Visual Studio (2020 for me), the filename of open files are written in the tabs at the top of the screen. If the filename is too long, it will be automatically shortened, i.e. instead of ReallyLongFilename.cs it will say ReallyL...lename.cs.
I want the entire filename to be displayed. I realize that I can hover my mouse on the tab to see the entire path, and I realize that I can select the dropdown on the top right to see all open files. That requires mouse and eye movement, when I just want eye movement.
Is there a setting for this?
filenames_have_been_shortened
Not really, but you can mitigate the problem by changing the tab minimum/maximum width via Tools > Options > Environment > Tabs and Windows > Minimum Tab Width and Maximum Tab Width. The default minimum is 60 and the default maximum is 215. Changing the Maximum Tab Width will allow you to see more of the filename.

How would I remove a vertical window split in the Visual Studio 2019 IDE?

I have added a vertical window split in Visual Studio 2019. The vertical window split was created using the "New Vertical Window Group" item of the Window menu.
I would like to remove the vertical window split and return to a single window.
There are no items in the menu to remove a vertical or horizontal window group. Is there a way to remove a vertical or horizontal window group in the Visual Studio 2019 IDE?
You have to select the class you want to move to the Original Side and then select "Move to Previous Documents Group"... one by one or just close the classes as Doug Kimzey says.
There is (or should be) a command in the Window menu called "Move to Previous Document Group." This will revert to your previous arrangement.
If you set up your split view, then exit and restart the IDE, this command may be called "Move to Next Document Group" - it (seemingly) does the same thing.

Opening multiple TFS diff files in Visual Studio using multi-selection

Multi-selection doesn't seem to be supported in Visual Studio's Team Explorer when attempting to compare multiple files. Is there another mean to this end?
The following procedure I've been using to review Pending Changes or Changeset Details requires a lot of extra keystrokes and also mouse interaction (to manually dock each diff file).
Navigate to Pending Changes (Changeset Details)
Ctrl+0, P (Ctrl+\, Ctrl+M)
Highlight a file and Compare with Workspace Version (multi-selection?)
, W (Enter)
Float the diff tab
Alt+-, F
Use mouse to dock floating diff tabs together.
The following method requires less mouse interaction, but disproportionately more keystrokes (multi-selection support in Pending Changes or Changeset Details would seem to help).
Open a file to compare from Pending Changes (Changeset Details).
Ctrl+0, P (Ctrl+\, Ctrl+M)
, W (Enter)
Pin Tab
Alt+-, P (note: Ctrl+Alt+Home keeps tab open w/o pinning)
Repeat steps 1-2 until all files to compare are opened.
The diff tabs should fill from left to right as they are pinned, leaving the last one opened in the left-most position (right-most in VS 2015).
Multi-select all diff tabs (press PgUp once for each tab while holding Ctrl+Alt+Shift)
Ctrl+Alt+Shift, PgUp
Float all selected/highlighted diff tabs into a single window
Alt+-, F
Position floating window of diff tabs
Win+Arrow

Visual Studio 2013 - Replace All Button gone (not just off screen)

I am unable to perform multi-file text search and replace (in Visual Studio).
In the past, when I opened the "Replace in Files" dialog, there were 4 buttons in the lower right. One of the bottom two buttons allowed me to "Replace All".
The two lower buttons (including "Replace All") are no longer present.
I believe this occurred after I changed some Windows settings so that I could use menus without the Magnifier.
It is not just a matter of the buttons being off-screen because the window is too large (although it is too large - they would be off-screen, if they were present).
I can drag the window and see the bottom, even though the top is then off-screen (I use AltWindowDrag, allowing me to hold the ALT key, and drag by any part of the window, not just the title bar).
The two lower buttons are not present. I'm unable to resize the window - when I try, nothing happens, or the window repositions so that I can see the title bar, but can no longer see the bottom.
The two buttons that are still present (Find Next and Replace) don't have keyboard shortcuts, so I presume that Replace All doesn't either. Nor can I select either of those two buttons using Tab, so probably can't select an "invisible" "Replace All" button that way.
Any help appreciated.
You can use Find and Replace by pressing Ctrl+H and to Replace All just use Alt+A.

Visual Studio: How can I see the same file in two separate tab groups?

I want to be able to edit one method while looking at another method in the same file, as reference.
Can this be done?
You can open the file in another tab (Window -> New Window).
Doing so you have two copies of the same file. Then you can right-click the tab bar and select New Vertical Tab Group (or New Horizontal Tab Group, the one you like more).
Hope I understood you question..
Be on the tab you want to duplicate,then click in the menu bar at the top onWindow > New Window
Finally drag & drop the second window to the the left or right side to show both views next to each other.
Et voila, there you have it :)
EDIT
It seems that this function is not implemented in all version of VS.
In my case (V 15.4.2 (2017), V 15.9.7 (2017) & V 16.2.5 (2019)) it just works fine.
Only vertically that I'm aware. When looking at the code, right above the vertical scroll bar is a small rectangle, drag it down to get a split view of the file.
You simply use the small drag arrows icon at the top right corner of your file window as depicted in the following screenshots:
1) View the same document side-by-side (with a fix for Visual Studio 2017)
It is possible to do this using New Window and New Vertical Tab Group, however, in my Visual Studio 2017 the New Window command was missing from the Window menu. To use it, first you must add the command to a menu or assign a shortcut to it.
To add New Window to your Window menu follow this sequence, starting with the Tools menu:
Tools > Customize > Commands > Menu Bar > Window > Add Command > Window > New Window
FYI In the Commands step you decide where to put the New Window command. The sequence I gave above puts it unceremoniously at the top of the Window menu.
To view the same document side-by-side
Open the document you want to view side-by-side
Select your recently added New Window command (perhaps it's in Window > New Window)
Right click the new tab and select New Vertical Tab Group or select that command from the Window menu
2) View the same document above-one-another
If you wish to view the same document in two views on top of each other use the Window > Split command or click-and-drag the double-arrow at the top of the scroll bar for any window.
3) Get creative
FYI You can even combine the two view options to have three, four or even more views of the same document on a particularly wide monitor. On mine (2560 x 1080) I can comfortably get three side-by-side views going and split them vertically, if desired.
One can install VsVim extension and :sp :vsp does the trick.
In Visual Studio 15 you can just click inside the document and then "Window → Split"

Resources