This extension adds support for the Vapor web framework to Visual Studio Code, providing a seamless experience for developing Vapor applications on all supported platforms.
You can also use this extension when running VS Code in the browser to have Leaf syntax highlighting.
-
💧 Create new Vapor projects
-
🍃 Language support and formatter for the Leaf templating language
-
✏️ Code snippets for common Vapor, Fluent, and Leaf code patterns
This extension requires the Vapor Toolbox to be installed on your system for project creation.
Note If you only need Leaf language support, you don't need to install the Toolbox.
On macOS and Linux, the Toolbox is distributed via Homebrew. If you do not have Homebrew yet, visit brew.sh for install instructions.
brew install vapor
For more information and installation methods, see the Toolbox page.
Formatting Leaf tags embedded in HTML attributes has some limitations.