Michael Haren’s Wassupy Blog

Highlight all matching words

in code and technology

Here’s a handy feature of Notepad++ that I’ve come to love: automatically highlight whatever text I’ve selected (see below).

I wanted that feature in Visual Studio so I searched and my favorite tech site delivered. Here’s what RockScroll does (I double-clicked dQty on line 2):

RockScroll is actually advertised as providing a thumbnail picture of your code instead of a scrollbar as shown (borrowing Scott’s image):

The highlighting stuff I wanted is just a hidden gem. By the way, if you’re getting ready to criticize my use of Hungarian notation in the above screenshots, please save your energy. This is legacy code and our current software standard explicitly forbids its use. I think this essay describes a very good application for it in modern programming, though (i.e. how to use Hungarian notation properly).