Click here to Skip to main content
Click here to Skip to main content

Visual Studio MRU List Editor Application

, 29 Jul 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
A small application that cleans up your Most Recently Used Projects and Files lists.

Screenshot - VSMRUListEditor1.gif

Introduction

Do you often create little applications to test out new techniques, user controls, or third party components? In that case, your list of Most Recently Used projects in the Visual Studio start page most likely contains a lot of projects named "Test", "Test2" etc. They take up a lot of room, and make it harder to locate the "important" projects. And of course, when your tests are done, you don't need them anymore...

It really bugged me that I couldn't just right click and delete projects from the list, so I wrote this small application. All it does is it edits the Registry a tiny bit and removes the unwanted projects.

I wrote it for Visual Studio 2005, but I've added some code so that you should be able to use it with Visual Studio 2002 and 2003 too. I can't test that, though, so please let me know if it doesn't work.

Actually, I wanted to make the program work with VS6 too, but that's a little more complicated as the list is stored in different places depending on the program language used. But, here is a similar program that can do it for VB:

Using the application

Screenshot - VSMRUListEditor2.gif

Very easy - uncheck the projects and files you want to remove, and hit the Apply button! You select your version of Visual Studio using the drop down combo at the top. If you have more than one version installed, that's no problem at all...

Be aware: Visual Studio has to be closed when you use the program. Otherwise, you risk VS recreating the MRU List when you shut it down...

Points of interest

For fun, I used Lukasz Swiatkowski's Glass Button control. I think it's really nice looking! You can find it here: http://www.codeproject.com/cs/miscctrl/glassbutton.asp.

For the listview sorting, I used mav.northwind's brilliant code that can be found here: http://www.codeproject.com/KB/list/LVCustomReordering.aspx. That code requires an inherited listview component, and seeing that it was done in C# and I really didn't have the time to rewrite it in VB, I simply broke out the component and compiled it in a separate DLL and added it to my project.

History

  • Version 2.2 - 2007-07-30 - Fixed an irritating problem: If you delete the last loaded solution, you will get an error when starting up VS saying: "C:\blablabla\lastloadedsolution.sln" could not be loaded - do you want to remove it from the MRU list?". But the solution was already removed from the MRU list. Turns out that there is another Registry key called "LastLoadedSolution" that needs to be edited.
  • Version 2.1 - 2007-07-24 - Added automatic detection and unchecking of deleted or missing projects and files.
  • Version 2.0 - 2007-07-18 - Added the possibility to edit the MRU files too. Plus, added the possibility of reordering the items using drag and drop. Source published.
  • Version 1.0 - 2007-06-17 - Initial release.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Johnny J.
Software Developer (Senior)
Sweden Sweden
Born in Copenhagen, Denmark
Have been living in Paris, France and L.A., The United States
Now live in Stockholm, Sweden
 
Started programming when I got my first VIC 20, and a few months later on Commodore 64. Those were the days!
 
Studied programming at the Copenhagen Engineering Academy
 
Professional console, winforms and webforms programming in Comal, x86 Assembler, Fortran, Pascal, Delphi, Visual Basic 3 through 6, Classic ASP, C# and VB.NET
 
I now work as Senior .NET developer building Airline Booking Systems, and have a number of projects in various states of progress to work on in the spare time...
 
PS: The cat on my profile is one of my three cats, Ramses. He's all white, odd-eyed, deaf and definitely the coolest cat there is!

Comments and Discussions

 
NewsArticle deprecated! PinprofessionalJohnny J.26-Jun-13 3:25 
GeneralAnother alternative to cleanup MRU List PinmemberSanjay Bhatia2-Aug-07 8:30 
GeneralRe: Another alternative to cleanup MRU List PinmemberJohnny J.6-Aug-07 0:11 
GeneralI gave u a five(5) PinmemberSeun30-Jul-07 7:06 
GeneralRe: I gave u a five(5) PinmemberJohnny J.30-Jul-07 8:43 
GeneralThe sauce is available now... [modified] PinmemberJohnny J.18-Jul-07 2:39 
GeneralWish List PinmemberOntracanoer24-Apr-07 6:03 
GeneralRe: Wish List Pinmemberwk63324-Apr-07 6:55 
GeneralRe: Wish List PinmemberJohnny J.18-Jul-07 2:37 
Questionworked on vs2002. no source though? Pinmemberalreadybeenregisteredpleasechooseanother19-Apr-07 15:24 
QuestionSource Code? PinmemberTom119-Apr-07 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141220.1 | Last Updated 30 Jul 2007
Article Copyright 2007 by Johnny J.
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid