Add: syntax highlight for a some "User Tag".
Art-Stea1th opened this issue · 8 comments
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:
-
Adding unnecessary cases of choice will only complicate the interaction for most users who don't need this features.
-
The more cases it is the greater load for the syntax analyser. For small projects, the impact will not be noticeable, but for the largest projects, this can be a little different.
-
Finally, the request to add can be just spam or represent a sabbotage of the extension to clutter it with unnecessary functionality and take away my time :)
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:
-
First of all, the requests that will gets the largest number of votes will be considered and also a just well-argumented requests (even if they don't have votes). This number of votes should exceed a certain threshold from the total number of users of the extension. This threshold is not yet decided, it's will fixed after a while.
-
Next - all remaining requests.
Hope for understanding. Regards.
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";
}
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
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).
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.
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.
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...
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/