How do you clear your MRU list in Visual Studio?

2019-02-03 21:47发布

I want to clear the list of projects on the start page...how do I do this? I know I can track it down in the registry, but is there an approved route to go?

10条回答
家丑人穷心不美
2楼-- · 2019-02-03 22:26

There is an MSDN article here which suggests that you just move the projects to a new directory.

However, as you mentioned, the list of projects is kept in the registry under this key:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\ProjectMRUList

and the list of recent files is kept in this key:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\FILEMRUList

Note For Visual Studio 2015:
The location has changed. You can check out this answer for details.

Some people have automated clearing this registry key with their own tools:
Visual Studio Most Recent Files Utility
Add-in for cleaning Visual Studio 2008 MRU Projects list

查看更多
走好不送
3楼-- · 2019-02-03 22:36

If you try opening up a project that can no longer be found, Visual Studio will prompt you for permission to remove it from the MRU list. So if you temporarily rename an appropriate top level folder to fake the projects' disappearance, you can get rid of the projects one by one.

查看更多
Summer. ? 凉城
4楼-- · 2019-02-03 22:39

In Visual Studio 2015 all the history lists (including search history, file MRU and project MRU) are now located at:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\MRUItems

You will see a different GUID folder for each list, and a sub-folder called Items in each of them. Find the Items folder that contains the relevant list, and just delete its parent GUID folder.

Visual Studio will re-create the GUID folder together with a new Items child folder, next time it wants to add something to the list again.

查看更多
劳资没心,怎么记你
5楼-- · 2019-02-03 22:42

Note: This answer is specific to Visual Studio 2010.

If you don't want to manually edit the registry, you can use PowerCommands for Visual Studio 2010.

PowerCommands 10.0 is a set of useful extensions for the Visual Studio 2010 adding additional functionality to various areas of the IDE.

The specific command for clearing the registry from the extension is:

Clear Recent Project List This command clears the Visual Studio recent project list. The Clear Recent Project List command brings up a Clear File dialog which allows any or all recent projects to be selected.

The PowerCommands can be installed with the Visual Studio extension manager: Tools > Extension Manager > Online Gallery: search for PowerCommands for Visual Studio 2010.

查看更多
登录 后发表回答