
IntelliSense, combined with the new Python Language Server, is also richer: the language server uses open-source typeshed definitions to provide completions for types where they can’t be statically inferred. IntelliCode will prompt you to enable the Microsoft Python Language server, so you’ll also notice that you get enhanced IntelliSense with syntax errors and basic warnings will now appear as you type. Microsoft Python Language Server (Preview)įor Python, IntelliCode builds on top of our Microsoft Python Language Server: our fast and powerful language server which was introduced in the July 2018 release of the Python extension for Visual Studio Code. Simply install both the IntelliCode extension and the Python extension, and IntelliCode will download the latest machine learning model and start making suggestions. These suggestions work on a broad variety of code included in our 2,000+ repo training set: machine learning frameworks, web frameworks, to general purpose scripting. Notice how in each case we used the “tf.” variable but the suggestions change to present the most relevant options for the code context in which the tf variable is being used. In the below example of writing TensorFlow code, we can see the starred items in the completion list are provided by IntelliCode, allowing you to select from the top items rather than having to search through the completion list: Using our machine learning algorithm, IntelliCode can infer the most relevant completions based on the current code context. However, there can be hundreds of completions to scroll through, and you typically need to type the first few characters out before you can get close to the right result. When writing Python code, the IntelliSense code completion speeds up your productivity by providing suggestions as you type.

Check out the video below to see IntelliCode for Python in action.


Today, we are bringing the power of machine learning trained on over 2,000 open-source repos to Python developers using Visual Studio Code. We shipped a preview extension showing the first of these capabilities: presenting the most relevant completions as you type in Visual Studio. AI-assisted IntelliSense for PythonĪt Microsoft Build 2018, we first announced IntelliCode, a set of AI-assisted capabilities to improve developer productivity. Today at the EuroPython conference in Edinburgh, Scotland, we are introducing support for Python in the IntelliCode extension for Visual Studio Code, as well as new improvements in editing for Python developers in Visual Studio Code.
