This question already has answers here:
How to Edit multiple lines in Visual studio 2017 at once
(9 answers)
Closed 1 year ago.
I'm trying to set some shortcuts in VS IDE but I used to write code in jetBrains IDE's (e.g. CLion, IJ, PC) which allow to write in several places simultaneously.
is it possible to do the same in VS?
thanks to #phuzi comment. How to Edit multiple lines in Visual studio 2017 at once
to set more then one keyboard cursor in VS default setting just press Shift+Alt and press several places with left mouse click or just Alt and drag left mouse key to mark rectangle.
you can't edit nons following lines like in CLion for example.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
In Visual Studio, the default window layout seems to be as follows:
Visual studio window layout
The code window is on the left, the solution explorer and properties windows are docked on the right, and the toolbox is docked on the left. How can the positions of the code window, and the solution explorer and properties windows be swapped?
You can drag solution explorer and properties windows to the desired location as illustrated here: Customize window layouts in Visual Studio.
This question already has answers here:
Remove TFS Connection From Solution
(7 answers)
Closed 4 years ago.
I am working in VS TFS. I've a project connected to TFS which I want to copy to a local non tfs project. How do I do that? If I just copy the solution folder and rename it, it will also copy the TFS information which I don't want.
Thanks in advance!
In Visual Studio, select the solution in the solution explorer.
Go to the File menu.
Under the file menu, go to Source Control menu.
Select Change Source Control.
In the dialog box that comes up, choose "unbind".
2 Issues with VS 2013:
I have the default toolbox and also the AjaxToolkit toolbox, everything is working properly until I uninstall the AjaxToolkit and the toolbox is gone, I reset window layout, reset the toolbox but it is still empty.
How to get the default toolbox back?
Secondly, I accidentally open the PerformanceExplorer in one of the project and can't not make it disappear, every time I open that project the PerformanceExplorer will pop up, that very annoying. anyuone know how to close the PerformanceExplorer?
Found the answer for 1st issue from: https://www.devexpress.com/Support/Center/Question/Details/K18560
The following steps allow you to reset the Toolbox completely and
enable Visual Studio to rebuilt it from scratch. In most cases, this
procedure solves all issues related to Silverlight toolbox items.
Above all, reset the Toolbox from Visual Studio. For this right-click
the Toolbox and click the "Reset Toolbox" item. After the reset
procedure is done, follow these steps:
Close Visual Studio;
Open the "c:\Users\\AppData\Local\Microsoft\VisualStudio\10.0"
(Windows 7) folder and remove all the .TBD files; (10.0 is VS 2010, 12 is VS 2013 etc.)
Run the "regedit" tool. For this click the "Run" item in the Start menu and type "regedit" without quotation marks;
Find the "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstaller_AssemblyFoldersExCache"
and
"HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstallerCache"
keys;
Remove everything from these keys leaving them empty; (delete all folders under ToolboxControlsInstaller_AssemblyFoldersExCache and
ToolboxControlsInstallerCache)
Run Visual Studio again and open a project and wait until it recreates all items in the Toolbox.
For second issue looks like it is a bug that has not been fixed yet
Is there any way to reopen the last closed tab in Visual Studio? Similar to Ctrl+Shift+t in FireFox and Chrome?
This is not exactly an equivalent, but it can be helpful, so I would mention it.
There is a much simpler way actually, which is to navigate backward (Ctrl+-). Even if the file is closed, VS opens up the file in a new tab. Of course this is useful only in opening the closed tab immediately after you have closed the tab (ie, if you haven't navigated anywhere else much).
Update:
This is now possible in VS 17.3. By using the Ctrl+K, Ctrl+Z keyboard shortcut, or navigating to the menu item under Window > Restore Closed Tab. Reference: https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-3-is-now-available/
Also consider Alt+F, Alt+F.
(push Alt and hold it, now while holding, press F and then press F again).
This will open the Recent Files menu.
There, you can use arrow keys to select a file and open it by hitting Enter, or just use your mouse.
You can with the Visual studio Power Commands using Ctrl + Shift + Z
If you're using VS 2008, PowerCommands offers a "Undo Close" pane, featuring your recently closed documents, or like David said, check the File menu. PowerCommands doesn't limit the number of files it shows, though.
I don't know of way to open the last closed tab, but you can open your most recent file through your File Menu and the top one should be your most recently closed tab.
in VS 2010 "PowerCommands for Visual Studio 2010"
http://visualstudiogallery.msdn.microsoft.com/e5f41ad9-4edc-4912-bca3-91147db95b99/
Adds a command "Undo Close"
You can actually do this (at least in Visual Studio 2019) by pressing Ctrl+T,R which opens a little window which shows the last opened windows.
Source
As NotAPro pointed out, the combination I mentioned seems to have changed to Ctrl+1,Ctrl+R
In Visual Studio Code 2020 you can use Shift+Ctrl+T, which is associated with Reopen Closed Editor. This should do what you're expecting.
Once you use VS 2022 V.17.3 it is pretty simple:
CTRL+K, CTRL+Z