VSCode Tools for AXAML from LeXtudio Inc.Avalonia is a cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows via .NET Framework and .NET Core, Linux via Xorg and macOS. It uses AXAML format, which is a variant of XAML. This Visual Studio Code Extension contains support for AXAML like autocompletion, live previewer, document outlines, etc. Avalonia is a registered trademark of AvaloniaUI OÜ. This extension is independent and unaffiliated with Avalonia. HistoryThis repository is a fork of the original Avalonia for VS Code extension by AvaloniaUI. Our goal is to actively maintain and enhance the developer experience in Visual Studio Code by:
Issues and feature requests are welcome—your input helps shape the roadmap. Follow the contribution guide if you want to help us build the extension. Getting StartedRecommended Companion ExtensionFor consistent formatting of your AXAML files, we recommend optionally installing the community XAML Styler extension ( Create a new Avalonia projectYou can create a new Avalonia project directly from the Visual Studio Code Additionally, you can create a project from the command line too, with the command:
This will create a new folder called
Finally open the MyApp folder in the VS Code, open any AXAML file to activate the extension and code completion.
Enable PreviewerAfter you load the project in the VS Code, you can click on Show Preview button on the editor toolbar (1) The previewer will prompt you to build your project if needed. The previewer will refresh when you switch between multiple xaml files, unlike Visual Studio for Windows or Rider, VS Code will reuse the single preview window. XAML Code completionRich syntax highlighter and contextual code completion will make it lot easier to read and write AXAML files XAML OutlinesThe AXAML files in the VS Code are showed with document outlines, allowing you to collapse and expand sections of your AXAML files for better readability. Useful Commands
Settings Highlights
Copyright (c) 2023 AvaloniaUI |