Click here to Skip to main content
15,114,784 members
Articles / Visual Studio / Visual Studio 2010
Posted 20 Nov 2010


2 bookmarked

Shortcut: Open Containing Folder

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
20 Nov 2010CPOL
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:


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


About the Author

Ajay Vijayvargiya
Software Developer (Senior)
India India
Started programming with GwBasic back in 1996 (Those lovely days!). Found the hidden talent!

Touched COBOL and Quick Basic for a while.

Finally learned C and C++ entirely on my own, and fell in love with C++, still in love! Began with Turbo C 2.0/3.0, then to VC6 for 4 years! Finally on VC2008/2010.

I enjoy programming, mostly the system programming, but the UI is always on top of MFC! Quite experienced on other environments and platforms, but I prefer Visual C++. Zeal to learn, and to share!

Comments and Discussions

GeneralReason for my vote of 5 Fine Pin
Ashish Tyagi 4011-Jan-11 20:53
MemberAshish Tyagi 4011-Jan-11 20:53 
GeneralMy Vote 5 Good Work! Pin
Abdul Quader Mamun17-Dec-10 6:39
MemberAbdul Quader Mamun17-Dec-10 6:39 
GeneralReason for my vote of 5 Thanks Pin
kobymeir22-Nov-10 8:50
Memberkobymeir22-Nov-10 8:50 
GeneralReason for my vote of 5 Useful!!! Pin
GPUToaster™21-Nov-10 20:42
MemberGPUToaster™21-Nov-10 20:42 
Reason for my vote of 5

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.