"Match Case" and "Match Whole Word" toolbar tools gone
- In Visual Studio .Net 2003 it was possible to customize the toolbars to include a tool showing the status of the Match Case and Match Whole Word options as shown in these images:
http://webpub.byu.net/mjk2/MatchTools.png
http://webpub.byu.net/mjk2/MatchToolsCustomize.png
I couldn't find those tools in Visual Studio 2005. I use them ALL the time. I looked through all the commands in the Customize dialog.
Hopefully these will come back in a service pack, but in the mean time, is there a workaround? Is there a macro or plugin or something that will bring them back?
Michael
Answers
Hi Michael,
I've written a simple addin that should add these commands.
Let me know if you find this useful! Below are links for the source and the binary.UPDATE: Recovered sources and moved to MSDN Code Gallery : http://code.msdn.microsoft.com/vsmatchoptions
Thanks!
Aaron Marten
Visual Studio SDK Team
- Thanks! Your addin works perfectly. It's just like the Visual Studio .Net 2003 commands (except for the default icons). I'm going to share it with everyone in the office if you don't mind.
I was thinking I might look at your source and change the default icons and then share it but I have no idea how to do that.
Michael
All Replies
Hi Michael,
I've written a simple addin that should add these commands.
Let me know if you find this useful! Below are links for the source and the binary.UPDATE: Recovered sources and moved to MSDN Code Gallery : http://code.msdn.microsoft.com/vsmatchoptions
Thanks!
Aaron Marten
Visual Studio SDK Team
- Thanks! Your addin works perfectly. It's just like the Visual Studio .Net 2003 commands (except for the default icons). I'm going to share it with everyone in the office if you don't mind.
I was thinking I might look at your source and change the default icons and then share it but I have no idea how to do that.
Michael Hi Michael,
I don't mind at all. In fact, please feel free to tweak it to your liking. The icons are set in the addin when AddNamedCommand2 is called in Connect.cs. You'll notice the constants 60 & 61 that I used for the icons. By default when VS creates the addin, this is set to 59 (which is a smiley face). If you want to see what a specific value will give you, check out this article on MSDN. Note that VS and Office share this common set of icons.
Also, check out this article for information on adding your own custom icons.
Aaron
Thanks. I looked for hours for it. It seemed unimagineable that it would be left out in VS2005.
- Does anyone know how to get the buttons back if they disappear? I've found that other add-ins can cause them to disappear, for example, ankhSVN.
I've tried a few things.
1. On my home PC I deleted the MatchOptionsCommand files in the AddIns folder and reinstalled. This brought back the buttons.
2. On my work PC, also with same version of ankhSVN installed the above did not work.
Kevin


