Creating Properties, Summary and Custom Colors for Methods and Types

Asked

Viewed 183 times

6

Is there a way or attribute that puts in a Class, Method, Structure or anything else that changes its color? Example of the function CType: inserir a descrição da imagem aqui

Notice that she is colorful, and her arguments instead of staying CType(Expression, TypeName) As Type stays CType(<expression>, <typename>) As <result>

I created a method called GetTypeDynamic, and would like to define a bluish color, or categorize it as a Keyword. How it looks in the Visual Studio 2015:

I’ve already created your XML documentations, so don’t even talk about using '''<summary>!

And I’d like to leave it that way: (Simulated image, not real)

inserir a descrição da imagem aqui

I’ve tried using the Visual Studio SDK, but I can’t use it or install it on my PC

  • In fact, if someone responds and has a vote, they will automatically get half the reward :D I was curious to know why you want this. To me the color of the text does not seem to have any importance. It’s nice to have some colors because it makes it easier to read, but to the point of needing a certain function to have a specific color... I can’t imagine the use.

  • Maybe declaring an internal function would have like, not how to do it, my Visual Studio 2015 does not get anything Red or Purple, where you modified it ?

1 answer

1

There’s nothing to do that. Neither do any of the plugins I know (some paid) do exactly that.

To be able to choose the color of each method individually, the only way is to create a plugin for this, as you started to do.

You would need to keep a list of members, and a UI to choose the color of each.

  • Do you really need this? It would be an interesting project. But I think the solutions available are quite good, even if they don’t have that ability.

  • I don’t know, any way to change the color, even not being Keyword would help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.