简体   繁体   中英

How do you enable Code suggestion feature in C# in Visual Studio 2017?

I saw something in the video, I think it was a very good feature, so that you started typing the code you were making, the program offered you to continue the code. I do not mean the intellisense function , for example, you write str in the list of strings in the list

For example, by writing your own Try code, a preview of the code that should be written next (for example, you should use Catch later), like this picture. I wanted to see how this feature is enabled in Visual Studio 2017? Because it does not work for me

Visual Studio屏幕截图

It's called Visual Studio IntelliCode, see https://visualstudio.microsoft.com/services/intellicode/ . It puts what you're most likely to use at the top of your completion list.

You enable it by installing the extension: https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.VSIntelliCode .

And it's free!

You might be thinking of ReSharper

Aside from suggesting code blocks and code completion it also checks your code for anything that's not true to the code style.

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