Freigeben über


Understanding the File Open Location

Keyboard:  CTRL + O
Menu:  File -> Open -> File
Command:  File.OpenFile
Versions:  2008,2010
Published:  8/18/2010
Code:  vstipEnv0035

 

Have you ever noticed that when you open a file in Visual Studio (CTRL + O) it will automatically use the directory of the current active document?

image

 

 

This is an option that can be found in Tools -> Options -> Documents under "Open file using directory of currently active document":

image

 

You can turn this feature off and it will use the DefaultFileOpenLocation from HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version> in the registry instead:

image

 

Now when I go to open a file (CTRL + O) it will use this location:

image

 

The DefaultFileOpenLocation changes every time you successfully open a file in the Open File dialog however the update is not written to the Registry until you close Visual Studio.