GoLand and templ with autocomplete
Tue, Jan 16, 2024
One-minute read
GoLand and templ with autocomplete
To use templ with autocomplete via its
Plugin you must do the following:
- Go to settings>templ and enter the path to the
templbinary (e.g.$HOME/.local/bin/templ) - Close all GoLand instances
- Launch GoLand via the terminal inside the project directory (e.g.
goland .)
It works but still needs some refining at the project level.
The alternative is to use neovim for the templ files or VSCode. As
a GoLand subscriber these are sub par alternatives but may be required in the
short term.
Tags:
#go #templ