Slint for Visual Studio Code
This extension for VS Code adds support for the Slint design markup language.
You can install the extension directly from the Visual Studio Code Marketplace. Afterwards it is
automatically activated when editing files with the
In addition to the usual code editing features such as completion and syntax highlighting, this extension also offers the ability to view a rendering of the file you're editing and update it on-the-fly when making changes.
You can issue the "Slint: Show Preview" command from the command palette when editing a
Issues should be reported in the Slint issue tracker.
Building from Source
How to debug the LSP
From another VS Code instance: Load this directory in VS code and then start debugging (Run -> Start Debugging). That will "debug" the vs code extension and create a new VS code window. The LSP server binary will be started if previously built
You can see the output in the output pane "Slint LSP" (that's the drop-down that usually shows "Tasks").
Alternatively, you can start vscode with the following options:
If you want to load the web extension, add
How to build the extension package
To create a
Note that the resulting