News

.NET MAUI in VS Code Goes GA

Visual Studio Code's .NET MAUI workload, which evolves the former Xamarin.Forms mobile-centric framework by adding support for creating desktop applications, has reached general availability.

Finally bringing the tool up to GA status was support for XAML IntelliSense and the recent addition of XAML Hot Reload, or the ability for a developer to make a coding change and it see it reflected instantly in a running application without needing a refresh or restart. Such functionality is common in modern development tooling, and Xamarin.Forms reportedly had it back in Visual Studio 2019.

.NET MAUI
[Click on image for larger view.] .NET MAUI (source: Microsoft).

The Hot Reload update to the VS Code tool was announced a couple weeks ago -- it still involves a configuration tweak to enable -- and the main tool shipped soon after.

'.NET MAUI XAML Productivity Boost in VS Code is HERE!!! Hot Reload & IntelliSense!!!'
[Click on image for larger view.] '.NET MAUI XAML Productivity Boost in VS Code is HERE!!! Hot Reload & IntelliSense!!!' (source: YouTube).

"Being able to edit your code without restarting your app is one of the most powerful productivity features that .NET developers have," Microsoft's dev team said in an announcement yesterday (June 12)". "With the latest release, you can now Hot Reload edits to your C# and XAML files in Visual Studio Code. XAML Hot Reload is already enabled -- simply edit your XAML while the app is running, and watch the changes automatically reflect in your UI!"

C# Hot Reload is still experimental though, so developers need to turn it on by opening VS Code Settings (CTRL/CMD + SHIFT + ,), searching "hot reload" and checking the box for "[Experimental] Enables Hot Reload while debugging."

The IntelliSense and Hot Reload functionality are mostly provided by two other mainstay Visual Studio Code extensions that supply bedrock capabilities, the primary C# tool (28.2 million installs) and the accompanying C# Dev Kit (4.3 million installs). The VS Code .NET MAUI extension has about 118,000 installs at the time of this writing.

Along with IntelliSense, which provides rudimentary AI coce-completion assistance of a sort, the dev team also made note of more advanced AI in the form of the ever-present "Copilot" moniker that's de rigueur these days.

"The Preview version of the .NET MAUI extension shipped with basic XAML syntax highlighting and completions, but it was far from the full experience we wanted to deliver," Microsoft said. "Over the past year, we've modernized the existing XAML Language Service in Visual Studio, packaged it up, and brought it over to VS Code for your .NET MAUI development. This addition, which also works with Copilot, gives you intelligent autocomplete, helpful tooltips, and seamless code navigation while you create your UIs."

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • GitHub Expands Copilot Enterprise Search in Visual Studio and VS Code

    GitHub supercharged search for its Copilot Enterprise AI assistant in both Microsoft's Visual Studio IDE and Visual Studio Code so developers can now get results from well beyond local codebases, including the internet.

  • What's New in TypeScript 5.5, Now Generally Available

    Microsoft shipped the latest iteration of its type-infused superset of JavaScript, TypeScript 5.5, introducing inferred type predicates, control flow narrowing, JSDoc @import and other enhancements.

  • GitHub Copilot for Azure Gets Preview Glitches

    This reporter, recently accepted to preview GitHub Copilot for Azure, has thus far found the tool to be, well, glitchy.

  • New .NET 9 Templates for Blazor Hybrid, .NET MAUI

    Microsoft's fifth preview of .NET 9 nods at AI development while also introducing new templates for some of the more popular project types, including Blazor Hybrid and .NET MAUI.

  • What's Next for ASP.NET Core and Blazor

    Since its inception as an intriguing experiment in leveraging WebAssembly to enable dynamic web development with C#, Blazor has evolved into a mature, fully featured framework. Integral to the ASP.NET Core ecosystem, Blazor offers developers a unique combination of server-side rendering and rich client-side interactivity.

Subscribe on YouTube