Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut in Visual Studio to open solution in Windows file explorer?

Is there a keyboard shortcut in Visual Studio (currently using 2013) to open the solution (or a project) in the Windows file explorer?

Currently, I normally have to open up the Solution Explorer, right-click on my solution or a project and scroll down to 'Open Folder in File Explorer', but this becomes a time consuming task as I have to do it often (TortoiseGit not integrated with my IDE).

like image 948
Ciaran Gallagher Avatar asked Sep 14 '15 12:09

Ciaran Gallagher


People also ask

How do I open the Solution Explorer tab in Visual Studio?

Open Solution Explorer If you don't see the Solution Explorer tool window, you can open it from the Visual Studio menu bar by using View > Solution Explorer, or by pressing Ctrl+Alt+L.

How do I open the solution folder in Visual Studio?

In Visual Studio, click File > Open > Folder. Navigate to the folder, and click Select Folder. This opens the folder in Solution Explorer and displays its contents, files and any subfolders.

What does Ctrl S do in Visual Studio?

Bookmark this question. Show activity on this post. I am working on a React project using a Visual Studio Code. When I press Ctrl + S in the Visual Studio Code to save file, it removes all the JavaScript formatting or scatters all the code in the file.


2 Answers

An improvement over @Walt_Ritscher's answer I found was to assign a keyboard shortcut to the File.OpenContainingFolder.

Instead of having to first select a project or solution from the solution project I can simply press a desired keyboard shortcut while any file is in focus (without having to open the Solution Explorer) and it will open the file location in Windows Explorer. This saves time if the focus in my solution explorer is on a file deep in the structure of my solution explorer since I don't have to scroll all the way back up to select a project/solution before hitting the keyboard shortcut.

like image 183
Ciaran Gallagher Avatar answered Oct 11 '22 02:10

Ciaran Gallagher


Yes, you can add your own keyboard shortcut to open the folder.

Open the Tools/Options/Keyboard dialog. In the Show Commands Containing textbox, type OpenFolderIn and you will see the OpenFolderInFileExplorer command. Select the command, then assign a shortcut key. Move your cursor to the Press shortcut keys textbox.then press your desired key combination. In my example I chose Ctrl+Shift+'. Be sure and click the Assign button to memorize the shortcut key

Press OK and you're done.

enter image description here

like image 29
Walt Ritscher Avatar answered Oct 11 '22 00:10

Walt Ritscher