Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Visual-Studio / VS2010

Shortcut: Open Containing Folder

5.00/5 (5 votes)
20 Nov 2010CPOL 29.4K  
Open the Folder of current file with a simple keystroke
Many times we need to open (or at least know) the folder where the currently open file exist. For this we just right click on the tab and click 'Open Containing Folder'. For me, it was tedious to do this, and therefore I found a trick: Assign a shortcut to it.

To assign a shortcut:

  • Click Tools -> Customize...
  • In the dialog box shown, click Keyboard...
  • In new dialog box, under Show commands containing, type File.OpenContainingFolder
  • Now, under Press shortcut keys editbox, press the keystroke of your choice. I chose Ctrl + ` (key above Tab, below Escape)
    • Now hit Assign. Then OK, then Close.

And you are done! Just press the assigned shortcut key, and Windows Explorer would open where the currently opened file exists! The file will have selection in Windows Explorer. :thumbsup:

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)