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.
Peter is tired of being called "Mr. Chen", even so certain individuals insist on it. No, he's not chinese.
Peter has seen lots of boxes you youngsters wouldn't even accept as calculators. He is proud of having visited the insides of a 16 Bit Machine.
In his spare time he ponders new ways of turning groceries into biohazards, or tries to coax South American officials to add some stamps to his passport.
Beyond these trivialities Peter works for
Klippel[
^], a small german company that wants to make mankind happier by selling them novel loudspeaker measurement equipment.
Where are you from?[^]
Please, if you are using one of my articles for anything, just leave me a comment. Seeing that this stuff is actually useful to someone is what keeps me posting and updating them.
Should you happen to not like it, tell me, too
I am nine feet tall and made out of fire. I spread misery, suffering and chaos in my wake. Hail Eris! Hail Arioch! Hail tuna and mayonnaise sandwiches with sun-dried tomatoes!
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.