Skip to content

Instantly share code, notes, and snippets.

@Chris-Gillis
Last active January 24, 2025 04:19
Show Gist options
  • Save Chris-Gillis/f04416d8179114f666b002c146c6f379 to your computer and use it in GitHub Desktop.
Save Chris-Gillis/f04416d8179114f666b002c146c6f379 to your computer and use it in GitHub Desktop.
Visual Studio Code config to get TailwindCSS autocomplete in Gomponents classes
import (
. "github.com/maragudk/gomponents/html"
)
func HeaderView() g.Node {
component := Div(Class("/* inside here you get tailwind autocomplete */"))
return component
}
{
"tailwindCSS.includeLanguages": {
"go": "html",
},
"tailwindCSS.experimental.classRegex": [
"Class\\(\"([\\w\\s\\-\\/]*)\"\\)"
],
}
@HanggiAnggono
Copy link

thanks for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment