This question already has answers here:
Close all tabs in Visual Studio
(6 answers)
Closed 9 years ago.
If I have say for example 20 tabs open in VS 2010.
Is there a shortcut to closing all of them instead of manually click 'X' for each one?
Try using ALT + W + L. This would help you to close all the open documents at once.
Please vote if it worked.
Window → Close All Documents.
I always bind this to Ctrl+Shift+W
Right click on one of the tabs, select "Close all but this" the manually close the last one.
you can right click on a tab ->Close all but this. This will close all tabs except the one you clicked. Then you can click the "x" for the last tab remaining.
You can assign your own keyboard shortcut on Window.CloseAllDocuments action in VS options. By default there is none.
Related
I closed this window and I don't know how to reopen it, any help?
Just go to "View" menu of C::B and click on "Manager".
Or... faster solution solution is keyboard shortcut: SHIFT + F2
This question already has answers here:
Hitting Tab in Visual Studio selects block instead of adding indentation
(3 answers)
Closed 6 years ago.
If I place my cursor inside a multi-line comment:
/*
* place cursor after the asterisk and before the word 'place'
*/
if (x == 0)
{
// some code
}
... and hit tab, Visual Studio doesn't add whitespace as usual. Instead, it highlights the entire comment (all three lines, in the example). If I hit tab again, it will select and highlight the next statement or block of statements. In my example, it highlights the entire if.
How do I fix this and make Visual Studio tab things over? I want tab to behave like a tab.
I'm using Visual Studio 2013 Ultimate with Resharper 9. It started doing this yesterday, and I have no idea why.
Figured it out. It wasn't in VS' settings! Somehow Resharper's configuration was changed. In Resharper's settings:
Environment > Editor > Editor Behavior
Uncheck the box labeled "Structural Navigation". Click "Save".
I'm using Visual Studio 2010 and when I do a "Find in Files" the results are returned to the "Find Results 1" window which is docked below my code editor window.
Before, I would double click on one of the results in the Find Results window and the file I clicked on would open in the code editor panel.
The problem is now when I click on one of the results, it opens in the same panel as the Find Results window which happens to be much smaller than the code editor window which is annoying.
Does anyone know how to make it so that when I double click on the search results they open up in the code editor window again?
Thanks!
Click Window → Reset Window Layout
Works for VS2013 Update 4 and all newer versions, including VS2019.
I thought I had this problem but it was easily fixed by docking the Find Results window using the very bottom of the window position selectors.
The files open in the same position as the Find Results when the window is docked in the positions immediately next to the centre position.
This is also being discussed here:
VS2010 docks code windows in the wrong place
Go the same... irritating... I realized that this unwanted behavior happened only while the app was running in debug. After I stopped debugging, a new panel was created with this file open in it. If I opened new files, they would open in this new panel. If I close all files in this new panel, opening new files from the "Find In Files" open in the standard code editor window (as long as the app is not running).
I had this problem also. I experienced the problem in VS2013. I did not want to do "Window -> Reset Window Layout" because it seemed like that was going to do other stuff that I did not want it to do.
Here was my solution:
I noticed the problem in VS2013 in which I had project "A" open.
I opened another copy of VS2013 and opened project "B".
I closed the copy of VS2013 that was exhibiting the annoying behavior: project A.
I closed the copy of VS2013 that had project B open.
This saved the settings from the "good" copy.
Opened project A in VS2013 and all was well.
Obviously, the caveat is that this requires you notice the problem before you close VS2013. But if you do notice it in time, this is a pretty easy solution.
For those who do not want to dock their "Find Results", "Error List", "Output",... windows to the right, and for those the above answer which is Window->Reset Window Layout doesn't work: may be you are trying to dock wrong place! You should dock these windows to very bottom. Refer here: https://stackoverflow.com/a/2735726/6176317
For me, this was happening with a Visual Studio window containing an SQL file with the Window Split option active. If the cursor was in the top pane of the window, both Ctrl + F (Find) and Ctrl + H (Find & Replace) would cause the find control to appear in the other (main) Visual Studio window. Moving the SQL window into the main window just caused Find and Find & Replace to display the "Find in Files" dialog instead until another tab was selected.
The workaround was to place the cursor in the bottom pane which caused both Find and Find & Replace to work correctly in that pane of that window. Unfortunately as long as the Window Split is there, the bug is still there in the top pane.
This question already has answers here:
Changing Ctrl + Tab behavior for moving between documents in Visual Studio
(14 answers)
Closed 9 years ago.
How do I get "next tab", "prev tab" keyboard shortcuts to work in Visual Studios 2010?
(For a more precise description of the functionality I need please see the firefox/chrome/etc and how they do their "ctrl-pgdn" and "ctrl-pgup" keyboard shortcuts).
This should be extrememly easy... and yet I can't seem to figure it out.
NOTE:
I do know that there is a "ctrl-tab" that is similar... but it only scrolls through the "most recently used list" which is different. I don't care about "the most recently used list". I just want to go to the right/left tab.
You should map the Window.NextDocumentWellTab and not View.NextTab and remove it from any other functions its assigned to. Only mapping it will not work, you also need to unmap from anything else its being used on, apparently.
This is what my keyboard configuration looks like:
Looked into this some more, and it turns you need to install the Productivity Tools. That gives you that NextDocumentWellTab function.
Under Visual Studio 2010 Professional, this keyboard shortcut goes by the name Window.PreviousDocumentWindow and Window.NextDocumentWindow.
Important Note: By default, Ctrl-PgUp and Ctrl-PgDown are assigned to Edit.ViewTop and Edit.ViewBottom respectively, so make sure to remove the existing keyboard assignment before trying out your new assignment. If you don't, the keyboard commands you enter will continue to be interpreted as the most "specific" shortcut (Edit.ViewTop or Edit.ViewBottom) since you're most likely trying this out in the Edit view!
This question already has answers here:
After "Go to Definition", is there a command to return to where you came from?
(9 answers)
Closed 9 years ago.
In Visual Studio when going to definition by pressing F12, it takes you to definition. Is there any way to go back to where you came from?
This is specially annoying when you have definition within same file. If it's in another file then it's ok Ctrl+Tab take you back to previous window. But when it's in same file then have to find where you came from and go there.
Try the key combination: Ctrl + -.
As others mention, use Ctrl + -. This is the View-NavigateBackward shortcut in Visual Studio's default key mapping scheme, and can be mapped to any key combination you like from Tools->Options->Keyboard. I like Alt+← myself, to match typical web browser use.
Note that, for most five-button mice, the navigate-left button will also do this.
Ctrl + -
Ctrl -> '+' -> '-'
I searched for a long time till i found that one, and I can't stop using it since!! :)