News

Visual Studio's AI-Powered Assistant, IntelliCode, Gets Smarter

Visual Studio's IntelliCode has gotten smarter -- using artificial intelligence to provide better code completion suggestions -- and more robust, now supporting more programming languages.

The code-completion enhancement comes with the ability to examine and learn from the code generated by a developer in order to provide "smarter" lists of the most probable APIs intended to be used as the developer types.

IntelliCode, the AI-powered upgrade of Visual Studio's IntelliSense, previously used a machine learning model to examine GitHub projects to determine the best completion suggestions, along with the context of the current project.

"Until now, IntelliCode's recommendations have been based on learning patterns from thousands of open source GitHub repos," said Microsoft's Mark Wilson-Thomas, senior program manager, in a blog post yesterday (Dec. 5). "But what if you're using code that isn't in that set of repos? Perhaps you use a lot of internal utility and base class libraries, or domain-specific libraries that aren't commonly used in open source code, and would like to see IntelliCode recommendations for them too? If you're using C#, you can now have IntelliCode learn patterns and make recommendations based on your own code!"

Visual Studio IntelliCode
[Click on image for larger view.] Visual Studio IntelliCode (source: Microsoft).

Also, while that new functionality pertains only to C#, IntelliCode -- first introduced at Microsoft's Build conference in May -- now supports more programming languages.

The tool preview, which comes in a Visual Studio Marketplace extension, now supports C++ and XAML.

What's more, IntelliCode's counterpart extension for the open source, cross-platform Visual Studio Code editor now supports TypeScript/JavaScript and Java, along with the previous support for Python.

Microsoft's Sana Ajani provided more details on the VS Code extension's new support of TypeScript/JavaScript in a separate post.

"IntelliCode will also assist you across different JavaScript libraries, whether you're writing client-side code with libraries like React, Angular, or Vue, or doing server-side development with Node.js and Express," explained Ajani.

Meanwhile, Nick Uhlenhuth provides more details on the C++ functionality coming to Visual Studio 2019.

"IntelliCode uses machine learning to train over thousands of real-world projects including open-source projects on GitHub," Uhlenhuth said. "As such, IntelliCode will be most helpful when using common libraries such as STL. Based on this training, IntelliCode saves your time by putting what you're most likely to use at the top of your IntelliSense completion list."

At the time of this writing, the Visual Studio IntelliCode extension had been installed more than 129,000 times, earning a 4.6 rating (0-5 scale) from 25 developer reviewers, while the VS Code extension is more popular, with more than 496,000 installations and a 4.8 rating from 10 reviewers.

While some developers welcomed the new languages joining the IntelliCode camp, others wanted more, with multiple calls for VB.NET support, along with one for ASM (x86 and amd64). Microsoft replied that the tool is still in preview and feature suggestions can be entered at the GitHub issues site for the project.

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