News

Microsoft Boosts AI-Assisted Developer Productivity

While the question of artificial intelligence someday replacing computer programmers is still being debated, Microsoft is steadily using AI advances to boost their productivity, this week announcing whole line completions and refactoring.

Visual Studio developers get their AI boost from IntelliCode, which puts AI to work to bolster the code-completion functionality of IntelliSense. Machine learning models are used to analyze thousands of GitHub-hosted open source projects to place the most likely to be used constructs at the top of code-completion lists, even providing argument completion and inferring code style and formatting conventions, finding misused variables, identifying files most in need of code reviews and more.

At this week's Ignite 2019 conference, Microsoft unveiled two new capabilities: whole line completions and refactoring.

"IntelliCode now provides whole-line code completion suggestions mined from the collective intelligence of your trusted developer knowledge bases," said Amanda Silver, Partner Director Program Manager, Visual Studio and Visual Studio Code, in a Nov. 4 blog post. "This is like having an AI-developer pair-programming with you, providing meaningful, suggestions and whole-line code completions without disrupting your flow."

IntelliCode refactorings in Visual Studio IDE
[Click on image for larger, animated GIF view.] IntelliCode refactorings in animated action in Visual Studio IDE

Refactoring, meanwhile, was detailed in a Sept. 5 post by Mark Wilson-Thomas,Principal Program Manager, Visual Studio IntelliCode. He described refactoring, then in preview, thusly: "Under the hood, IntelliCode looks at each of your edits as you type. It uses PROSE (PROgram Synthesis by Example) to synthesize generalized edit scripts that can take your code from the 'before editing' state to the 'after'. When IntelliCode discovers that it can apply one of these scripts elsewhere in your code (which can be based on as few as 2 examples in your code), we let you know via the Visual Studio lightbulb in the margin or when hovering the affected code, and through green 'squiggles'. The lightbulb offers actions to apply the refactorings for you. The underlying technology is similar to the Excel’s Flash Fill feature and is described in this research paper."

Just a couple months later, the refactoring technology implementation has evolved further, as Silver this week detailed AI technology developed by the PROSE team called program synthesis, more specifically called programming-by-examples (PBE).

"IntelliCode watches code changes as they occur in the IDE and locally synthesizes, on demand, edit scripts from any set of repetitive pattern changes," she said. "It uses these edit scripts to produce suggestions, enabling you to apply repetitive changes quickly or create a pull request to apply the suggestion(s) for team review without distracting your current work. IntelliCode refactorings take the time-intensity and error-proneness out of routine tasks, such as introducing a new helper function."

Silver said developers can try out refactorings in Visual Studio C# projects by downloading the latest Visual Studio Preview.

At the end of her post, in response to a question posed today about using IntelliCode in the cross-platform, open-source Visual Studio Code editor, Wilson-Thomas chimed in to point to this VS Code extension, but he also noted that "the whole line completion and refactorings features shown at Ignite are not yet released; sign up at https://aka.ms/vsicsignup to be kept up to date as we make progress, and thanks for your interest!"

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • .NET Core Ranks High Among Frameworks in New Dev Survey

    .NET Core placed high in a web-dominated ranking of development frameworks published by CodinGame, which provides a tech hiring platform.

  • Here's a One-Stop Shop for .NET 5 Improvements

    Culled from reams of Microsoft documentation, here's a high-level summary of what's new for performance, networking, diagnostics and more, along with links to the nitty-gritty details for those wanting to dig in more.

  • Azure SQL Database Ranked Among Top 3 Databases of 2020

    Microsoft touted the inclusion of Azure SQL Database among the top three databases of 2020 in a popularity ranking by DB-Engines, which collects and manages information about database management systems, updating its lists monthly.

  • Time Tracker Says VS Code Is No. 1 Editor for Devs, Some Working 15+ Hours Per Day

    WakaTime, which does time tracking for programmers, released data for 2020 showing that Visual Studio Code is by far the top editor/IDE used by its coders, some of whom are hacking away for more than 15 hours per day.

Upcoming Events