This extension provides official language server support for the RsHtml templating engine in Visual Studio Code.
- Language Server: Integrates the RsHtml language server to provide rich language features.
- Syntax Highlighting: Basic syntax highlighting for
.rs.htmlfiles. - Cross-Platform Support: The language server works seamlessly on Windows, macOS, and Linux.
This extension is a lightweight wrapper that automatically starts the RsHtml language server for you, enabling a smoother development experience when working with RsHtml templates.
-
Install the Extension: Install "RsHtml" from your preferred marketplace:
-
Language Server Management: This extension requires the
rshtml-analyzerlanguage server to provide language features. The extension handles this for you automatically:-
If you have
rshtml-analyzeralready installed and available in your system'sPATH, the extension will use your existing version. This is ideal for users who prefer to manage their own toolchains. The server can be downloaded from the releases page or use the command below:cargo install --git https://github.com/rshtml/rshtml-analyzer.git --tag v0.1.7
-
If the server is not found in your
PATH, the extension will seamlessly download and manage the latest compatible version for your operating system in the background. This provides a zero-configuration experience.
-
-
Start Coding: Open a project containing
.rs.htmlfiles to automatically activate the language features.
Enjoy working with RsHtml!