This page collects the current VS Code extension settings in one place and explains when to change them.
| Setting | Default | Use it for |
|---|---|---|
axsg.languageServer.mode |
bundled |
Choose between the packaged managed server and a custom command. |
axsg.languageServer.command |
axsg-lsp |
Custom server executable or script when mode = custom. |
axsg.languageServer.args |
[] |
Extra command-line arguments for a custom server launch. |
axsg.languageServer.trace |
off |
Protocol tracing for debugging client/server traffic. |
mode = bundled for normal product use.custom only when you are debugging a custom server build, external tool wrapper, or transport issue.trace = messages or verbose only for short debugging sessions because it increases log noise.| Setting | Default | Use it for |
|---|---|---|
axsg.inlayHints.bindingTypeHints.enabled |
true |
Show inferred binding types inline in XAML. |
axsg.inlayHints.typeDisplayStyle |
short |
Choose short names vs fully qualified CLR names. |
| Setting | Default | Use it for |
|---|---|---|
axsg.preview.dotNetCommand |
dotnet |
Override the .NET command used for build/launch. |
axsg.preview.compilerMode |
auto |
Select preview startup strategy. |
axsg.preview.targetFramework |
"" |
Force a target framework when the project has multiple desktop TFMs. |
axsg.preview.hostProject |
"" |
Point library XAML files at an executable preview host project. |
axsg.preview.buildBeforeLaunch |
true |
Allow preview orchestration to build missing or stale outputs. |
axsg.preview.autoUpdateDelayMs |
300 |
Debounce unsaved XAML pushes to the preview host. |
autoRecommended default.
sourceGeneratedUse this only when you want to force the AXSG preview path.
avaloniaUse this when you explicitly want the Avalonia/XamlX previewer path.
For both xaml and axaml, the extension also contributes defaults for:
onUnlessPressedThose are configuration defaults contributed by the extension, not hard-coded editor behavior.
{
"axsg.preview.compilerMode": "auto",
"axsg.preview.buildBeforeLaunch": true,
"axsg.inlayHints.bindingTypeHints.enabled": true
}
{
"axsg.preview.compilerMode": "sourceGenerated"
}
{
"axsg.preview.hostProject": "samples/ControlCatalog/ControlCatalog.Desktop/ControlCatalog.Desktop.csproj",
"axsg.preview.targetFramework": "net10.0"
}
{
"axsg.languageServer.mode": "custom",
"axsg.languageServer.command": "/path/to/axsg-lsp",
"axsg.languageServer.args": [
"--stdio"
]
}