📜 ⬆️ ⬇️

14 new products in Visual Studio 2019

Hello! In touch, the team to improve productivity in .NET (aka. Roslyn). We pay a lot of attention to improving your .NET coding experience. After all, sometimes small additions and corrections can really improve the workflow. You may have seen some improvements in the preview versions of VS2019. But we still want to talk about some of them that should help you work more productively.

Caution, a lot of gifs.


')

Tool enhancements


How do you like the new colors from Roslyn? The colors of Visual Studio Code were highly appreciated, so we included similar color schemes in Visual Studio. Your code editor has now become a bit more colorful. Keywords, user-defined methods, local variables, parameter names, and overloaded operators received new colors. You can even customize colors for each syntax classification by going to Tools> Options> Environment> Fonts and Colors and scrolling to “User Members”.

New roslyn classification colors

At the bottom of the file, in your editor, there are indicators of the health of the document, as well as the code cleaning icon. The document health indicators let you know immediately how many errors and warnings are in the file that you have just opened. You can click on the cleanup code icon to apply the code style rules specified in Tools> Options, or, if you have an editorconfig file that instructs you to use the same code style in your command, VS will apply the styles specified in this file.

image

You can edit SDK type project files by simply double-clicking. You can also view these files as a preview in the GoToAll navigation (Ctrl + t) and search for content for file links.

image

Load a subset of projects into your solution with filtered solutions ! Now you can upload projects and save the .slnf file, which will open only the projects you specified. This will help you quickly get the code you are interested in without having to download the entire solution.

image

Find all links classified by type of link. You can filter by reading / writing in the new “Kind” column in the search box for all links.

image

Run the code style formatting across the entire solution at the command line using the global dotnet format tool.

image

Intellicode is an extension that offers smart hints, thanks to trained machine learning models that run in over 2000 .NET open source GETH repositories on GitHub.

image

Now omnibus new code fixes and refactorings!


Foreach for LINQ


image

Add missing link for non-imported types


image

Synchronize namespace and folder name


image

Inverting conditional expressions


image

Pull members up menu to access the interface


image

Transfer / indent / alignment of parameters / arguments


image

Removing unused values ​​and expression parameters


image

This is a list of some of the new features in Visual Studio 2019. For a complete list, see the release notes . As always, we would be happy to receive feedback from you on twitter , on GitHub or in the comments below. It is also important to note that in order to use .NET Core 3.0 Preview you need to download and install the SDK. It is not yet included in the Visual Studio 2019 Installer.

Source: https://habr.com/ru/post/447292/


All Articles