How to have ReSharper like syntax highlighting without ReSharper
Asked Answered
M

1

5

How do I change the color of my properties and methods to be like those with the ReSharper plugin? I can't find option in Visual Studio > Options > Font and Colors to change these.

Syntax highlighting with ReSharper

Manic answered 8/8, 2018 at 11:51 Comment(0)
M
7

You can't change the default C# property and method highlighting normally. You can do it by installing an extension though. I recommend you to download and install SemanticColorizer by Andreas Reischuck.

After installing go to Tools > Options > Environment > Fonts and Colors. In the drop-down select the TextEditor and under display items look for the ones that start with "Semantic". Customize these to your desirable color scheme.

If you specifically want the ReSharper syntax highlighting, set the "Semantic Property" RGB: (237, 124, 201) and "Semantic Normal Method" RGB: (0, 234, 234). Voilà! You have your ReSharper look and feel.


Also thanks to AlexK. for mentioning CoCo by George Aleksandria and Visafora. You can use these extensions as well to achieve the same result.

Manic answered 8/8, 2018 at 11:51 Comment(5)
github.com/GeorgeAlexandria/CoCo & viasfora.com are two other good colorize extensionsAmir
@AlexK. thanks for pitching in! I will add those to my answer as well.Manic
changing these settings alone does not result in exact look of resharper colors. I'm not a big fan of resharper but I really like their coloring. Have you found any complete list of settings?Deliverance
Amazing. Thanks Busko. this worked for me perfectly.Inodorous
@Deliverance - if you combine those settings with the example settings file (github.com/hicknhack-software/semantic-colorizer/files/763058/…) linked from marketplace.visualstudio.com/…, you should get pretty close to the Resharper colours.Whilom

© 2022 - 2024 — McMap. All rights reserved.