Adding an attribute to a class using the property editor

Visual Studio allows you to visually design components. For example, you are developing a Windows form. You change its property in the property editor. The IDE will generate code in a partial class in the xx.designer.cs file. We can customize this behavior by changing the UITypeEditor for properties.

Now the question is: can we extend the code generation behavior? For example, we change the parameter in the properties window, and then the IDE adds the .NET attribute to the class?

+3
source share
1 answer

As far as I know, this is not possible. I'm sorry. However, such a thing is possible with Eclipse because it is open source.

0

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


All Articles