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).
- 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.