Visual Studio + R# – Color Extension Methods differently with ReSharper

When I read code, I find it really useful to see whether a method is real, or just an extension.

To do so, enable Color identifiers in ReSharper > Options > Code Inspection > Settings. Be aware, that this sets the ReSharper default colors in the first place.

tmpF42

Then define ReSharper Extension Method Identifier in Options > Environment > Fonts and Colors to your favorite color. I like to have them in Purple.

tmpF43

Have fun!

One thought on “Visual Studio + R# – Color Extension Methods differently with ReSharper

  1. This is indeed a good idea. I hope VS2010 will allow this by default. I gave value types a different color already a long time ago, because they behave different than reference types. I spotted many bugs because of this highlighting.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s