Configuring the development environment

Acss Editor

Acss is an interpreted language and supports editing it using any text editor. Most simply, you can edit it in Notepad. However, we recommend using an IDE for a better authoring experience.

Using Rider

For now, for Rider, we provide rudimentary usage. We need to execute the following code after the IAcssContext has been built to generate a Rider configuration file for the current environment. We will try to place it automatically in the Rider installation directory. If the execution fails, please check for exceptions via parameters and handle the creation of the configuration file yourself.

var riderBuilder = AcssContext.Default.GetService<IRiderSettingsBuilder>();
riderBuilder.TryBuildRiderSettingsForAcss(out _, out _, null);

The directory for the Rider configuration file is typically:

C:/Users/{user}/AppData/Roaming/JetBrains/Rider{version}/filetypes/Acss.xml

The Rider configuration file relies on AcssContext, and different context environments produce different configurations, mainly in the sense that different types are registered to the type resolution service, which produces different type code highlighting and hints.

Using Visual Studio Code

We provide a rudimentary Acss language plugin for Visual Studio Code. It can be downloaded and installed here, or by searching for 'avalonia-css-extension' in the VSCode app.

Like Rider, there are no updates planned for this plugin at this time, and the results are mediocre.😥😥😥

Last updated

Was this helpful?