Introduction
Josh Beach wrote a utility for editing the MRU list used by Visual Studio. You can find his original article here. Peter then added some extra functionality and you can find his updated version here.
I really like the app, but I had a few niggles so I made some changes of my own:
- It now supports Visual Studio 2008
- The default Studio version selected in the drop-down box will be the newest, rather than the oldest
- The buttons have ToolTips
- It doesn't list Visual Studio versions that you don't have installed
- Better-looking buttons
- Re-named some of the buttons and changed the layout a bit
- Added an installer project
- A few other tweaks and fiddles because I was bored
As I can't upload new versions to someone else's article, I've created my own - my first article here at The Code Project, shame it's not my own work!
Using the Code
I have really only fiddled with the UI and made some small changes to the existing code so please take a look at Josh and Peter's original articles for code information. If you want to add other versions of Visual Studio to the list, take a look at the MainForm()
constructor in MainForm.cs - it's just a case of adding a new AddVersion()
call.
History
June 5, 2008 - peterchen
- Fixed: Save failed when Visual Studio 2008 was not installed
- Added: Additional keyboard support
Shift+Up/Down to move an item, Del to remove, Num-+ to add an existing project/solution
- Changed selection change after Delete to match my personal preferences
Oct 29, 2009 - Nelviticus
- Changed: Uses
ListView
instead of ListBox
for better display of file name and directory - much easier to read
- Added: Now supports Visual Studio 2010. You can add support for other versions by editing the config file in your installation directory (if using the installer) or editing the project settings (if building the project yourself). No need to add a new
AddVersion()
call and re-build the application
April 22, 2010 - Nelviticus
- Fixed: Browsing to Visual Studio 2010 projects by double-clicking entries or clicking the 'Explorer' button now works. VS2010 uses environment variables in the file paths it stores in the registry, but because the
Process.Start
method doesn't expand these, we have to do it manually.