If Visual Studio is corrupted at runtime and cannot be restored from the corrupt state, you can use this parameter to reset Visual Studio to its initial state. Examples of these problems may include: the window layout file is damaged, the menu custom file is damaged, or the keyboard shortcut file is damaged. Disclaimer: If this parameter is used, all environment settings and custom settings are lost. For this reason, Microsoft does not publicly support this parameter and does not make it public (if you type devenv.exe/? In the command prompt line /?, You will not see this parameter ). If you encounter environment problems, use this method as a last resort and make sure that you have backed up the parameter before using the export environment settings.
To use this parameter, perform the following operations:
1. |
Disable all Visual Studio 2005 instances. |
2. |
Click Start and select Run ...". |
3. |
Click "includevenv.exe/resetuserdata ". |
This command runs for several minutes, while Visual Studio clears the settings and resets itself to its initial state. In this case, you can open task manager to check whether the devenv.exe process is still running. After running, you can restart Visual Studio. The first startup dialog box appears again, just like running Visual Studio for the first time on a computer.