首页 > 解决方案 > Visual Studio 2017 Community: "Using" suggestions for classes

问题描述

I'd like to achieve something similar to what IntelliJ is capable of. For example, if I type only a part of class' name in IntelliJ I get a list of suggestions for namespaces/packages. If I choose one of them - the class' name get autocompleted and appropriate package name gets added on top with import statement.

Now, when I try to do something similar in Visual Studio 2017 Community, it's a different story. Let's take System.Console class as an example.

My question is - can I make Intellisense behave like in the 3rd case, but

What I tried:

标签: c#visual-studiovisual-studio-2017intellisense

解决方案


This extension for VS2017 and 2019 seems to do most of what I asked: https://marketplace.visualstudio.com/items?itemName=Dreamescaper.IntelliSenseExtender

Keep in mind that suggestions for non-imported types are not enabled by default. You have to turn them on in: tools -> options -> Intellisense Extender


推荐阅读