Muokkaa

Jaa


What's new in Visual Studio 2019

Updated for the 16.11 release. See full release notes | View product roadmap

With Visual Studio 2019, you'll get best-in-class tools and services for any developer, any app, and any platform. Whether you're using Visual Studio for the first time or you've been using it for years, there's a lot to like in our current version!

Here's a high-level recap of what's new, all-up:

  • Develop: Stay focused and productive with improved performance, instant code cleanup, and better search results.
  • Collaborate: Enjoy natural collaboration through a Git-first workflow, real-time editing and debugging, and code reviews right in Visual Studio.
  • Debug: Highlight and navigate to specific values, optimize memory use, and take automatic snapshots of your application's execution.

For a complete list of everything that's new in this version, see the release notes. And, for more info about what's new in the 16.11 release, see the Visual Studio 2019 v16.11 is available now blog post.

Develop

View the following video to learn more about how you can save time with new features.

Video length: 3.00 minutes

Formerly known as Quick Launch, our new search experience is faster and more effective. Now, search results appear dynamically as you type. And, search results can often include keyboard shortcuts for commands, so that you can memorize them for future use.

An animation of the new search experience in Visual Studio 2019

The new fuzzy search logic will find anything you need, regardless of typos. So, whether you're looking for commands, settings, documentation, or other useful things, the new search feature makes it easier to find what you're looking for.

For more information, see Use Visual Studio search.

Intelligent search service

New in 16.9: By using cloud-powered technology, artificial intelligence, and machine learning, we've improved our search results. Now, not only does search in Visual Studio produce more relevant results, but it can also help you discover product features more easily, too.

For more information, see the Intelligent Visual Studio search service blog post.

Refactorings

There are lots of new and highly useful refactorings in C# that make it easier to organize your code. They show up as suggestions in the light bulb and include actions such as moving members to interface or base class, adjusting namespaces to match folder structure, convert foreach-loops to Linq queries, and more.

An animation of the refactorings experience in Visual Studio 2019

Simply invoke the refactorings by pressing Ctrl+. and selecting the action you want to take.

IntelliCode

Visual Studio IntelliCode enhances your software development efforts by using artificial intelligence (AI). IntelliCode trains across 2,000 open-source projects on GitHub—each with over 100 stars—to generate its recommendations.

An animation of IntelliCode in Visual Studio 2019

Here are a few ways that Visual Studio IntelliCode can help enhance your productivity:

  • Deliver context-aware code completions
  • Guide developers to adhere to the patterns and styles of their team
  • Find difficult-to-catch code issues
  • Focus code reviews by drawing attention to areas that really matter

We initially supported only C# when we first previewed the IntelliCode as an extension for Visual Studio. Now, new in 16.1, we've added support for C# and XAML "in-the-box". (Support for C++ and TypeScript/JavaScript are still in preview, however.)

And if you're using C#, we've also added the ability to train a custom model on your own code.

For more information about IntelliCode, see the Announcing the general availability of IntelliCode plus a sneak peek and Code more, scroll less with Visual Studio IntelliCode blog posts.

Code cleanup

Paired with a new document health indicator is a new code cleanup command. You can use this new command to identify and then fix both warnings and suggestions with a single action (or click of a button).

The cleanup will format the code and apply any code fixes as suggested by the current settings and .editorconfig files.

A screenshot of the new code cleanup control in Visual Studio 2019

You can also save collections of fixers as a profile. For example, if you have a small set of targeted fixers that you apply frequently while you code, and then you have another comprehensive set of fixers to apply before a code review, you can configure profiles to address these different tasks.

A screenshot of the configure code cleanup control in Visual Studio 2019

Per-monitor aware (PMA) rendering

If you use monitors that are configured with different display scale factors, or connect remotely to a machine with display scale factors that are different from your main device, you might notice that Visual Studio looks blurry or renders at the wrong scale.

With the release of Visual Studio 2019, we're making Visual Studio a per-monitor aware (PMA) application. Now, Visual Studio renders correctly regardless of the display scale factors you use.

Per-monitor aware (PMA) rendering in Visual Studio 2019

For more information, see the Better multi-monitor experience with Visual Studio 2019 blog post.

Test Explorer

New in 16.2: We've updated Test Explorer to provide better handling of large test sets, easier filtering, more discoverable commands, tabbed playlist views, and customizable columns that let you fine-tune what test information is displayed.

A screenshot that shows the user interface improvements in the Test Explorer

.NET Core

New in 16.3: We've included support for .NET Core 3.0. Cross-platform, open source—and fully supported by Microsoft.

For more information, see the Announcing .NET Core 3.0 blog post.

Collaborate

View the following video to learn more about how you can team up to solve issues.

Video length: 4.22 minutes

Git-first workflow

Something you'll notice when you open Visual Studio 2019 is its new start window.

A screenshot of the new start window in Visual Studio 2019

The start window presents you with several options to get you to code quickly. We've placed the option to clone or check out code from a repo, first.

An animation of the 'Git-first' experience in Visual Studio 2019

The start window also includes options to open a project or solution, open a local folder, or create a new project.

For more information, see the Get to code: How we designed the new Visual Studio start window blog post.

Git productivity

New in 16.8: Git is now the default version control experience in Visual Studio 2019. We have built out the feature set and iterated on it based on your feedback during the past two releases. The new experience has now been turned on by default for everyone. From the new Git menu, you can clone, create, or open repositories. Use the integrated Git tool windows to commit and push changes to your code, manage branches, stay up to date with your remote repositories, and resolve merge conflicts.

For more information, see the Git experience in Visual Studio page.

Live Share

Visual Studio Live Share is a developer service that allows you to share a codebase and its context with a teammate and get instant bidirectional collaboration directly from within Visual Studio. With Live Share, a teammate can read, navigate, edit, and debug a project that you've shared with them, and do so seamlessly and securely.

And with Visual Studio 2019, this service is installed by default.

An animation that shows the Live Share collaboration feature in Visual Studio 2019

For more information, see the Visual Studio Live Share for real-time code reviews and interactive education blog post and the Live Share now included with Visual Studio 2019 blog post.

Integrated code reviews

We're introducing a new extension that you can download to use with Visual Studio 2019. With this new extension, you can review, run, and even debug pull requests from your team without leaving Visual Studio. We support code in both GitHub and Azure DevOps repositories.

A screenshot of the new Pull Requests extension in Visual Studio 2019

For more information, see the Code reviews using the Visual Studio Pull Requests extension blog post.

Debug

View the following video to learn more about how you can zero in with precise targeting while you debug.

Video length: 3.54 minutes

Performance gains

We've taken the once-exclusive C++ data breakpoints and adapted them for .NET Core applications.

An animation that shows the debug data breakpoints in Visual Studio 2019

So whether you're coding in C++ or .NET Core, data breakpoints can be a good alternative to just placing regular breakpoints. Data breakpoints are also great for scenarios such as finding where a global object is being modified or being added or removed from a list.

And, if you're a C++ developer who develops large applications, Visual Studio 2019 has made symbols out of proc, which allows you to debug those applications without experiencing memory-related issues.

Search while debugging

You've probably been there before, looking in the Watch window for a string amongst a set of values. In Visual Studio 2019, we've added search in the Watch, Locals, and Autos windows to help you find the objects and values you're looking for.

An animation that shows the debug search window in Visual Studio 2019

You can also format how a value is displayed within the Watch, Locals, and Autos windows. Select (by double-clicking) one of the items in any of the windows and add a comma (",") to access the drop-down list of possible format specifiers, each of which includes a description of its intended effect.

The new Watch window and format values feature in Visual Studio 2019

For more information, see the Enhanced in Visual Studio 2019: Search for Objects and Properties in the Watch, Autos, and Locals Windows blog post.

Snapshot Debugger

Get a snapshot of your app's execution in the cloud to see exactly what's happening. (This feature is available in Visual Studio Enterprise, only.)

An animation that shows the Snapshot Debugger in Visual Studio 2019 Enterprise

We've added support for targeting ASP.NET (Core and desktop) applications that run on an Azure VM. And, we've added support for applications that run in an Azure Kubernetes Service. The Snapshot Debugger can help you dramatically reduce the time it takes to resolve issues that occur in production environments.

For more information, see the Debug live ASP.NET Azure apps using the Snapshot Debugger page, and the Introducing Time Travel Debugging for Visual Studio Enterprise 2019 blog post.

Microsoft Edge Insider support

New in 16.2: You can set a breakpoint in a JavaScript application and start a debug session by using the Microsoft Edge Insider browser. When you do so, Visual Studio opens a new browser window with debugging enabled, which you can then use to step through application JavaScript within Visual Studio.

A screenshot that shows JavaScript code rendering in a browser

Pinnable Properties tool

New in 16.4: Now, it's easier to identify objects by their properties while debugging with the new Pinnable Properties tool. Just hover the cursor over a property you want to display in the debugger window of the Watch, Autos, and Locals windows, select the pin icon, and immediately see the information you're looking for at the top of the window!

An animation that shows how to pin properties in the Visual Studio debugger by using the Pinnable Properties tool

For more information, see the Pinnable Properties: Debug & Display Managed Objects YOUR Way blog post.

What's next

We update Visual Studio often with new features that can make your development experience even better. To learn more about our latest innovations, check out the Visual Studio Blog. For a record of what we've released in preview to date, take a look at the Preview Release Notes. And for a list of what we're planning to release next, see the Visual Studio Roadmap.

Meanwhile, here's what's currently in the works:

Give us feedback

Why send feedback to the Visual Studio team? Because we take customer feedback seriously. It drives much of what we do.

  • If you want to make a suggestion about how we can improve Visual Studio, you can do so by using the Suggest a Feature tool.

  • If you experience an issue where Visual Studio stops responding, crashes, or other performance issue, you can easily share repro steps and supporting files with us by using the Report a Problem tool.