locked
"Match Case" and "Match Whole Word" toolbar tools gone RRS feed

  • Question

  • 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
    Friday, December 1, 2006 7:30 PM

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

    Friday, December 1, 2006 11:04 PM
  • 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
    Monday, December 4, 2006 6:04 PM

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

    Friday, December 1, 2006 11:04 PM
  • 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
    Monday, December 4, 2006 6:04 PM
  • 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

    Monday, December 4, 2006 7:04 PM
  • Thanks.  I looked for hours for it.  It seemed unimagineable that it would be left out in VS2005.

     

    Tuesday, July 24, 2007 11:24 PM
  • 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
    Tuesday, July 22, 2008 8:07 AM
  •  

    Hey Aaron,

    Could you update this addin to work with Microsoft Visual Studio 2010 ?  We just upgraded to that.

    Thanks,

    Jeff Johnson

    Tuesday, June 8, 2010 2:51 PM
  • I've just posted a version of the extension that works in Visual Studio 2010 up on the Visual Studio Gallery. Enjoy!

    Aaron


    http://blogs.msdn.com/aaronmar
    Thursday, June 10, 2010 9:31 PM