简体   繁体   中英

Visual Studio Extension: Custom Quick Action

I need to generate a custom type of wrapper class from any existing one. An existing C# application is doing this very well, but its usage is quite annoying as it involves opening the application with the right file path, moving the generated file to the target location, modify the namespace and adding it to the Visual Studio solution.

I know that there might be other solutions, but I decided that I want an extension to do this (also for educational purpose). Target IDE is Visual Studio 2017 and it does not need to be backwards compatible.

For the usability it would be best to somehow extend the quick action menu when a class name is focused. There should be a possibility to do it, but I failed to find any resources on it.

Okay, for everyone that struggled like me:

My problem was that I searched for "quick action" instead of "light bulb". So after browsing the msdn documentation on extensibility, I finally found what I was looking for:

https://msdn.microsoft.com/en-us/library/dn903708.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM