Microsoft continues to refine the developer experience with the latest update to Visual Studio. Version 17.12 brings improvements aimed at boosting Razor productivity, making it easier and more efficient for developers to build and maintain applications. These enhancements further streamline workflows and reinforce Visual Studio’s commitment to delivering a seamless coding experience.
Here’s what you need to know about the new features:
Extract to Component, available in Visual Studio 17.12, is a new refactoring tool that automates the process of creating a Razor/Blazor component.
You can quickly generate a new file and extract code by selecting the refactoring (Ctrl + .) after highlighting the code (or tag) you want to extract.
The new Roslyn C# tokenizer/lexer enables support for raw string literals and verbatim interpolated strings in Razor files.
The lexer also adds support for binary literals and improves the handling of C# preprocessor directives, ensuring they follow C# rules.