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 at Converge 360.

comments powered by Disqus

Featured

  • Microsoft Revamps Fledgling AutoGen Framework for Agentic AI

    Only at v0.4, Microsoft's AutoGen framework for agentic AI -- the hottest new trend in AI development -- has already undergone a complete revamp, going to an asynchronous, event-driven architecture.

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

Subscribe on YouTube