NiftySolution
Introduction
For a long time now I've been using Honk's (Henrik dot Karlsson at dice dot se) FastOpen plugin for accessing files in Visual Studio quick and easy. Yes, there is Visual Assist to consider as well, but historically it's been buggy and slow (they might have fixed that now) so I've kind of shied away from it. So I though it was a good time to explore a little how the plugins in the new visual studio works and a little practice with C# as well to boot. The result was this little plugin that does two things:
- Opens any source file quick and easy in visual studio.
- Toggles between a .h file and a .cpp file.
Two new commands will be shown in visual studio once you've installed the plugin, Open and Toggle. Bind them to your favourite keybinding and happy hacking.
The search dialog that pops up when you select the command NiftyOpen have the following rules:
- Start typing the start of the filename to search for that name.
- Move around with the arrow keys.
- F5 refreshes the list (you need to do this manually when you add/remove files or switch solution)
- Esc cancels.
- Enter opens up the file (as well as double clicking with the mouse, but who uses that?)
As a final note, it's pretty cool that now for Visual Studio 2005 you don't need to register plugins anymore, simply drop them into the correct location and they'll be automagically detected by VS (oh, and one of the locations is: My Documents/Visual Studio 2005/AddIns).
History
- 2006-09-28: Uploaded the code on google. Go to the projectpage here.
- 2006-04-18: Removed the 2003 version. Updated the 2005 version with status bar text.
- 2006-02-09: Updated the search dialog to accept more characters, before it only accepted letters. Some might have underscores and numbers in their sourcefiles.... gah.
I can't seem to make it work. I installed it using the .msi. Everything is deployed correctly in the "My Documents\Visual Studio 2005\Addins" folder but when I start VS2005 there is no entry for the addin in the Tools\AddIn Manager and I can't bind any keyboard shortcuts for it.
Any ideas? Thx!
Have you tried to start visual studio twice with the addin active? I've noticed that the very first time after installing the msi, visual studio does not recognise the plugin and does not call the callback functions. After shutting down and restarting visual the plugin is active in the menu and you can select it as well for keybindings. Make sure that it's selected for "startup" in "Tools->Addin Manager" as well. I've tried it with a clean install with the new package I've put up as well.
It's very cool but it makes me wonder, why did you wait 12~15 years for this feature when you could have used some other better editor than Visual Studio and gotten this productivity gain years ago?
The download links do not seem to work
Page not found - /aurora/comp/NiftySetup.msi
:(
Oh, the broken download link was uncovered by the recent blog move. Please use the download list at google code instead (here). Sorry about that.