Avalonia for Visual Studio extension
Features
The Avalonia for Visual Studio extension provides an enhanced way of working with Avalonia XAML files. It does this by providing:
- An enhanced editor with deep integrations for a rich editing experience.
- A Previewer so you can see what the UI will look like without having to run the application.
Installation
See Set Up Your IDE for installation instructions.
Enhanced Editor
The editor for Avalonia XAML includes the following capabilities:
- Smarter, more helpful Intellisense while typing.
- Error highlighting and fix suggestions.
- Automatic XAML namespace imports.
- Full colorization of the XAML.
- "Go To Definition" navigation.
- Intelligent hover tips.
- Automatic document formatting.
- Outlining of the document so you can collapse elements.
Previewer
The previewer allows you to see what the UI of the open document will look like without needing to run the application.
For more information, please see Previewing your UI design.

Settings
Multiple options are provided to allow you to configure the way the editor and previewer behave.
These can be accessed by selecting Options from the Tools menu inside Visual Studio.

| Setting | Description | Options |
|---|---|---|
| Color Scheme | Controls how the AXAML file contents are colored. Requires a paid account to change. |
|
| Default Document View | What is displayed when a document is opened. |
|
| Split Orientation | Whether to split the orientation horizontally or vertically. |
|
| Swapped | Switch the positions of the editor and previewer in Split mode. | Checked: Positions are swapped. |
| Default Zoom Level | How the window content is sized. |
|
| Minimum Log Verbosity | Minimum LogLevel for the extension to produce log output. | Trace, Debug, Information (Default), Warning, Error, Critical, None |
| Telemetry Enabled | If basic usage telemetry should be reported. Requires a paid account to change. |
|
| Experimental Previewer | Use the new version of the previewer. Recommended for most users. |
|
| Signed in status | If signed in, shows the name of the account. | Link to sign in or out. |