When you are a heavy Visual Studio user like me, you might be likely to have a whole load of projects in the MRU list on the start page shown inside Visual Studio. And if you are like me, you might want to clear that list from time to time. One slight problem, there is no command to do this. After some research, I found the registry key used to store this information, you can find it under HKCU\Software\Microsoft\VisualStudio\8.0\ProjectMRUList. Just a small task to whack together a macro which clears the list for you. Then you can add the macro to any toolbar you like.
First the macro (easy peasy, I do know some VB...):
Sub ClearMRUList()
Dim key As RegistryKey
key = Registry.CurrentUser.OpenSubKey("Software\Microsoft\VisualStudio\8.0\ProjectMRUList", True)
Dim subKeys As String() = key.GetValueNames()
For Each subKey As String In subKeys
key.DeleteValue(subKey)
Next
End Sub
Next to add this to your Visual Studio toolbar:
- Add the VB code found above using the Macro IDE found under Tools\Macros
- Open Tools\Customize
- Under 'Categories' scroll to 'Macros'
- Under 'Commands' select the ClearMRUList macro, and drag it to a toolbar of your choice.
- Done!
There is one slight mishab. The start page doesn't refresh itself when you click the button, opening and closing it also won't help. A full restart of Visual Studio does.
Hope you find it usefull.
Posted
05-02-2006 11:43
by
Anonymous