Clear recently opened projects and files, searched content, and recently referenced components of Visual Studio (taking Visual Studio 2010 as an example ):
Visual Studio always keeps records of recently opened projects and files, as well as the content to be searched, as well as recently referenced components, and even deleted projects, but does not delete them in Visual Studio. The following describes several deletion methods:
First, create a BAT file and double-click it to clear it. The built-in code is as follows:
@ Echo off
@ Reg Delete hkcu \ Software \ Microsoft \ visualstudio \ 10.0 \ filemrulist/F
@ Reg Delete hkcu \ Software \ Microsoft \ visualstudio \ 10.0 \ projectmrulist/F
@ Reg Delete hkcu \ Software \ Microsoft \ visualstudio \ 10.0 \ find/F
@ Reg Delete hkcu \ Software \ Microsoft \ visualstudio \ 10.0 \ componentpickerpages/F
@ Reg Delete hkcu \ Software \ Microsoft \ visualstudio \ 10.0 \ object_browser/F
--------------------------------------------------------------------------
Type 2: manually clear it in the registry, which is cumbersome
1) Delete recently opened files
HKEY_CURRENT_USER \ Software \ Microsoft \ visualstudio \ 10.0 \ filemrulist, delete the corresponding key value on the right.
2) Delete recently opened Projects
HKEY_CURRENT_USER \ Software \ Microsoft \ visualstudio \ 10.0 \ projectmrulist, delete the corresponding key value on the right.
3) Delete the latest search content
HKEY_CURRENT_USER \ Software \ Microsoft \ visualstudio \ 10.0 \ find, delete the corresponding key value on the right.
4) Delete recently referenced Components
HKEY_CURRENT_USER \ Software \ Microsoft \ visualstudio \ 10.0 \ componentpickerpages, delete the corresponding key value on the right.
5) Delete the browsing content of the last object
Hkcu \ Software \ Microsoft \ visualstudio \ 8.0 \ object_browser, delete the corresponding key value on the right.