IntelliCode for Visual Studio FAQ
You can download an experimental extension for Visual Studio 2017 version 15.8 and later. Here are answers to some frequently asked questions about the extension.
Q. What functionality does the IntelliCode extension for Visual Studio provide?
The extension currently provides:
AI-assisted IntelliSense for C#, C++, and XAML that predicts the most likely correct API for the developer to use, rather than just presenting an alphabetical list of members. It uses the developer's current code context and patterns to provide this dynamic list.
AI-assisted IntelliSense recommendations based on your own code (C# only). For more information, see IntelliCode models based on your code FAQ.
Inference of code style and formatting conventions to dynamically create an .editorconfig file from your codebase (C# only). EditorConfig files help to keep your code consistent by defining code styles and formats. These conventions allow Visual Studio to offer automatic style and format fixes to clean up your document. Find more details about this feature in this blog article.
Q. Which version of Visual Studio do I need to run the Visual Studio IntelliCode extension?
The Visual Studio IntelliCode extension can be installed on Visual Studio 2017 version 15.8 and later (all SKUs). Installation of the extension halts with This extension is not installable on any currently installed products if you don't have the minimum required version installed.
The minimum Visual Studio version to see AI-assisted IntelliSense varies by language. If you don't see recommendations, you may need to update to a more recent version.
- C++ requires Visual Studio 2019 Preview 1 or later
- C# requires Visual Studio 2017 version 15.8 or later
- XAML requires Visual Studio 2017 version 15.9 or later
Q. How do I generate an EditorConfig file?
You can add an IntelliCode-generated EditorConfig file at the project or solution level in Visual Studio (or to a solution folder). You can find the editorconfig File (IntelliCode) template in the Add New Item dialog under Visual C# Items. Alternatively, add one directly by right-clicking on the desired location for the file in Solution Explorer, and then choosing Add > New EditorConfig (IntelliCode).
Q. I don't see my EditorConfig formatting conventions taking effect - why?
Formatting conventions don't appear in the Error List or as "squiggles" in your code. They can, however, be fixed using the Format Document (Ctrl+K, Ctrl+D) command.
Q. Format Document is not fixing my style conventions - why?
You may not be opted in to style fixes. The extended capability of fixing convention-based issues capability in Format Document only covers a fixed set of issues. You can change which issues are fixed in Tools > Options under Text Editor > C# > Code Style > Formatting > General > Format Document Settings (Experiment). The default settings don't fix some style conventions. You can opt in to these via Tools > options. For example, Apply implicit/explicit type preferences runs style rules about the use of
Q. Which EditorConfig conventions can Visual Studio IntelliCode infer?
The conventions inference feature is experimental, so IntelliCode doesn't yet support the full set of conventions documented in code style settings reference. IntelliCode can currently infer the following formatting and style conventions:
Q. I can't see the IntelliCode suggestions in my editing experience. Can you help?
IntelliCode suggestions appear in the standard Visual Studio IntelliSense UI for each supported language. Extensions that override that UI prevent the IntelliCode "starred" suggestions from appearing at the top of the list. You can verify if extensions are causing this behavior by turning them off and then trying IntelliSense again, or (if the extension supports it) by turning off their auto-completion features.
If this doesn't solve the problem for you, please report your issue via the Visual Studio Report a Problem feature and mention IntelliCode in your report.
Q: What about privacy? Are you sending my code to the cloud? What customer data is being sent to Microsoft?
Please see our general FAQ on privacy.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.