News

IntelliCode Advances with First Deep Learning Model for Python in VS Code

Remember when IntelliSense first wowed you with automatic code-completion suggestions as you programmed in Visual Studio?

Well, a new announcement from Microsoft shows just how far that notion has advanced, with the help of artificial intelligence (AI), in IntelliSense's successor, IntelliCode.

While IntelliSense provided a pop-up list of possible options for you to accept or not -- such as list members, parameter info and word completion -- IntelliCode, debuting in 2018, took that a step further. It leveraged AI to scan thousands of top-quality GitHub code repos to inject code context into the process in order to put the options you're more likely to use at the top of the suggestion list.

Specifically, at the time, Microsoft said it:

  • Delivers context-aware code completions
  • Guides developers to adhere to the patterns and styles of their team
  • Finds difficult-to-catch code issues
  • Focuses code reviews by drawing attention to areas that really matter
IntelliCode in Animated Action
[Click on image for larger, animated GIF view.] IntelliCode in Animated Action (source: Microsoft).

Now, utilizing advances in deep learning for natural language modeling, Microsoft has announced a first in programming language modeling.

"We have been working tirelessly to enable IntelliCode for more programming languages and, in the meantime, researching ways to improve the model precision and coverage to deliver an even more satisfying user experience," said Shengyu Fu, in an Aug. 24 blog post.

Yu, a principal applied scientist manager in the Visual Studio Data & AI Team, continued further: "One of our major research efforts was to bring the latest advancements in deep learning for natural language modeling to programming language modeling. After leveraging technologies like Azure Machine Learning and ONNX Runtime, we have successfully shipped the first deep learning model for all the IntelliCode Python users in Visual Studio Code."

The detailed post delves into the high-level tech behind the tool, from training deep neural networks, to the intricacies of long short term memory (LSTM) networks, to reducing model size via quantization, which this reporter isn't even going to try to understand, much less explain.

IntelliCode's Deep LSTM Model Architecture
[Click on image for larger view.] IntelliCode's Deep LSTM Model Architecture (source: Microsoft).

Suffice it to say Python programmers using VS Code have new AI-driven code helpers to play with, and Microsoft is soliciting their feedback.

"With a great team effort, we completed the staged roll-out of the first deep learning model to all the IntelliCode Python users in Visual Studio Code," Fu said.

And there's other new functionality to try out in the updated IntelliCode tool: "In the latest release of the IntelliCode extension for Visual Studio Code, we've also integrated ONNX Runtime and the LSTM model to work with the new Pylance extension, which is written entirely in TypeScript. If you're a Python developer, please install the IntelliCode extension and provide us feedback."

That tool has been installed more than 6.6 million times.

Going forward, Yu said Microsoft developers are planning to apply the deep learning model of member completion to more languages, all while seeking to enhance the transformer based deep learning model for even longer code completions.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube