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

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube