- 04.01 Insert Documents to the Right of Existing Tabs
- 04.02 Recent Files
- 04.03 Working with Documents on Multiple Monitors
- 04.04 Navigate Open Document Windows
- 04.05 Close the Current Document Window
- 04.06 Open a File Location from the File Tab
- 04.07 Open the File Menu Drop-Down List from Your Keyboard
- 04.08 Using the IDE Navigator
- 04.09 Multiple Views of the Same Document
- 04.10 Closing Just the Selected Files You Want
- 04.11 Understanding the File Open Location
- 04.12 Show Previous Versions
- 04.13 Using Custom File Extension Associations
04.11 Understanding the File Open Location
Tools | Options | Environment | Documents
2005, 2008, 2010
Have you ever noticed that when you go to open a file in Visual Studio (Ctrl+O) it automatically uses the directory of the current active document?
This is controlled by the Open File Using Directory Of Currently Active Document option. You can find this at Tools | Options | Environment | Documents.
You can turn this feature off by clearing its check box, and Visual Studio then uses the DefaultFileOpenLocation from HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version> in the registry instead.
Be aware that the DefaultFileOpenLocation changes every time you successfully open a file in the Open File dialog box. However, the update is not written to the registry until you close Visual Studio.