Visual Studio will change C # method parameter color

Is there a way in Visual Studio 2013 to change the syntax coloring of C # method parameters?

eg. Can I have AAA and BBB, but not someInt, Foo, ToString

private int MyMethod(int AAA, int BBB) { int someInt = new int(); someInt = AAA + BBB; string Foo = AAA.ToString(); } 

I tried to go to Tools -> Options -> Environment -> Fonts and colors -> Text editor and change the Identifier , but this changed the coloring of almost everything (variables, methods, parameters).

+7
source share
4 answers

ReSharper can do this.

First check this in the ReSharper options:

ReSharper options

Then select a color in the VS options:

VS options

Final result:

enter image description here

+13
source

I recently found this extension looking for the same thing for TypeScript, apparently it supports C # and VisualBasic, so it can be useful for you and any other:

Visual studio semantic colorizer

+4
source

For VS 2017 you can use.

Improved syntax highlighting by Stanislav Kuzmich

https://marketplace.visualstudio.com/items?itemName=StanislavKuzmichArtStea1th.EnhancedSyntaxHighlighting

0
source

Unfortunately, you will not find a way to colorize parameter variables in C #. However, you have the option to write an extension to do just that. Or you can rewrite everything in C ++, where you can colorize your parameters.

-3
source

Source: https://habr.com/ru/post/972724/


All Articles