vscode-twind-intellisense
vscode-twind-intellisense copied to clipboard
About Twind's auto-completion when developing Deno's Fresh in VScode
How can I get Twind auto-completion to work when developing Deno's Fresh in VScode?
Is Twind Intellisense not possible and Tailwind CSS IntelliSense needs to be set to work?
// environment
$ deno --version
deno 1.35.0 (release, aarch64-apple-darwin)
v8 11.6.189.7
typescript 5.1.6
// deno.json
{
"lock": false,
"tasks": {
"start": "deno run -A --watch=static/,routes/ dev.ts",
"update": "deno run -A -r https://fresh.deno.dev/update ."
},
"imports": {
"$fresh/": "https://deno.land/x/[email protected]/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"preact-render-to-string": "https://esm.sh/*[email protected]",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"twind": "https://esm.sh/[email protected]",
"twind/": "https://esm.sh/[email protected]/",
"$std/": "https://deno.land/[email protected]/"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
}
}
I also have the same doubt, the twind autocomplete does not work for me in vscode
See this issues for alternative solution https://github.com/denoland/fresh/issues/1519
This is a separate VSCode Twind intellisense extension that I developed, which only supports v1. It is still a work in progress. If you're interested, feel free to check it out.