Go Back
2 Votes

Enhance Quick Action support to suggest imports for types in NuGet packages


When working in Visual Studio, the Lightbulb / Quick Action system is an extremely useful tool to developers when language integration analysis of the code can identify something that can be fixed automatically. Each language integration must define its own quick actions. Currently, SDI only supports automatically importing missing namespaces for types and extension methods.

User-added image

One action that would be very useful is detecting missing references for types that originate from common and popular NuGet packages. To help negate some of the repetitive effort when creating new projects, you could just start using types from a NuGet package (like Newtonsoft.JSON) and utilize the Quick Action to automatically add the current version of the package to your project as well as an import for the namespace.

We would probably need this other great Quick Action IDEA implemented as well.

0 Comments | Posted by Marty Lewis to Synergy .NET, Visual Studio Integration on 4/6/2019 12:35 AM
Please log in to comment on this idea.