The official VS Code extension for Gothic Framework and templ development.
This extension provides a superior developer experience (DX) for the Gothic Framework ecosystem while preserving all existing templ language support and features.
Features
- Automatic templ Project Detection: Detects templ projects and offers recommended settings.
- Recommended Workspace Settings:
- Automatically configures the
templformatter. - Adds Tailwind CSS support for
templfiles. - Hides generated
*_templ.gofiles from the explorer and search for a cleaner workspace.
- Automatically configures the
- Gothic Framework Snippets: Specialized snippets for Page, Component, and API routes.
- Syntax Highlighting: Full syntax highlighting for the
templlanguage. - LSP Integration: Deep integration with the
templlanguage server.
Commands
Gothic Framework: Apply Recommended Settings: Manually apply the recommended workspace configuration.Gothic Framework: Show Generated _templ.go Files: Restores visibility of generated files in the explorer.Templ: Restart Language Server: Restarts the underlyingtemplLSP.
Snippets
templ Snippets
gpr: Generate a Gothic Framework page route.gcr: Generate a Gothic Framework component route.
go Snippets
gar: Generate a Gothic Framework API route.
Installation
Install the extension from the VS Code Marketplace or Open VSX Registry.
Requirements
Requires templ and gopls on the system path to function correctly.
Issues
Please raise any issues in the Gothic Framework VS Code Extension repository.
Based on templ-vscode.