Visual Studio Generate Stub replacement / extension in Visual Studio 2010

When we write the name of a method that does not exist, Visual Studio 2010 asks us if we want to generate a method stub with this name. What I would like to know is whether it is possible to replace the same code generation command as that made by me. I have never done any extension programs for Visual Studio, so I have a few questions:

  • How difficult is it? Is this something that I can learn in a couple of nights, or is it something that will make me “lose” a lot of time?

  • It seems to me that there is not much support for this kind of support, because, as a rule, people are not interested in developing solutions that extend the Visual Studio development environment. I searched on SO and it doesn't seem to have many Visual Studio extension threads.

  • I don’t know how the stub function of the generate method works in Visual Studio, but I just wanted to turn it into something more flexible and useful. Has anyone dealt with such things before, which can give me a pointer to where to start? I know the MS VSX website, but it has a lot of resources and can be overwhelming for someone new to me, just like me.
  • What technology do I need to use? T4? Maybe I need to learn a lot about code, such as Visual Studio, so I can learn other arguments like method, names, etc. Is that what the T4 is for?

thanks

+4
source share
1 answer

I searched a bit on the Internet and I don’t see anything about setting up a “Recommended Fix.” Your # 2 thought is probably in place.

You can change the VS editor by reading http://msdn.microsoft.com/en-us/library/dd885242.aspx .

+1
source

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


All Articles