News
IntelliCode: Microsoft's 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) support in the tool'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 took that idea 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.
When it was launched in 2018, the AI-assisted coding tool came with a useful list of capabilities. Microsoft said that 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
-
Now, utilizing advances in deep learning (DL) for natural language modeling (NLM), 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 August 24 blog post.
Yu, a principal applied scientist manager in Microsoft's Visual Studio Data and AI Team, said that bringing the latest advancements in DL and NLM to programming language modeling was one of his organization's major research efforts. "After leveraging technologies like Learning and ONNX Runtime, we have successfully shipped the first deep learning model for all the IntelliCode Python users in Visual Studio Code," he wrote.
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.
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 DL 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.