Art-Stea1th / Enhanced-Syntax-Highlighting

[Marketplace] Lightweight "editor classifier extension" for Visual Studio based on the async Roslyn APIs to enhanced highlighting custom tags in C# code.
https://marketplace.visualstudio.com/items?itemName=StanislavKuzmichArtStea1th.EnhancedSyntaxHighlighting
Other
76 stars 10 forks source link

Add: syntax highlight for a some "User Tag". #7

Open Art-Stea1th opened 6 years ago

Art-Stea1th commented 6 years ago

This issue was created to accommodate requests for adding syntax highlighting for specific user tags.

Syntax highlighting can be added for almost any custom cases, if it will not have a logical conflicts with existing ones. Good ideas are always welcome! Although... I could add even the "Unicorn", if this request received a lot of votes :)

However, I can't add everything for several reasons:

Therefore:

When you placing a request, please to describe at least in a few words, the cases in which you would benefit from the highlighting for this tag.

You, as well as others who uses of this extension, can vote for any request (including your own) by selecting the "thumbs up" icon as your reaction, in the upper right corner of the request message those you like. (please do not duplicate the request if it already exists, just vote for it, and please do not cheat the number of votes to your own request).

Order of consideration:

Hope for understanding. Regards.

ryanwoodcox commented 6 years ago

I like the support to style the font for Static classes. The "ConstantStuff" class definition below as well as it's usages could be styled as the user desires.

public static class ConstantStuff { public const string Hello = "Hello"; }

bsiegel commented 6 years ago

I'd like to request support for Built-In Types (e.g. int). Currently the editor highlights them as "Keywords", and I'd like to have them colored the same as all other user types. Maybe it's possible to just use the color of the underlying type (e.g. System.Int32)? The list of available type keywords is here: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/built-in-types-table

joergbenndorf commented 5 years ago

I'd like to see the support for coloring the argument name of a named argument value while calling a method, e.g. MethodName(argumentName: argumentValue).

Ttxman commented 5 years ago

I would like to see custom highlighting for async Task based stuff. Mainly I would like to have Fields, Properties and Methods that return Task or ValueTask highlighted. (and maybe even IAsyncResult)

Code I am working on right now have lots of legacy code written before Async/Await and mixes threads, background workers, Task with manual continuations and now even the async methods (rewrite & consolidation will probably take years :/). It would be really nice to have visual cues, that the things passed around are promises and not just values.

mcquiggd commented 4 years ago

I'd love to see the ability to change the color of Attributes - especially when working with OpenAPI (Swagger) definitions, we tend to have Attribute Soup, and that can make code appear to be a wall of one color.

deakjahn commented 3 years ago

Local functions: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/local-functions

This one is kinda hard to tell from regular code without some help...

Matt-Meyers commented 2 years ago

I'd be thrilled if XML Documentation parameters could be added. I can get all comment documentation to be the same color, except the parameters brightly glow blue.

Check link for an example https://stackoverflow.com/questions/39622337/

reza-repo commented 2 months ago

Rider can tell if a variable is mutated or not and use a different color/style for its syntax highlighting.

image