tw-in-js / vscode-twind-intellisense

Intelligent Twind tooling for VS Code
MIT License
60 stars 10 forks source link

About Twind's auto-completion when developing Deno's Fresh in VScode #26

Open keisuke-333 opened 1 year ago

keisuke-333 commented 1 year ago

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/fresh@1.2.0/",
    "preact": "https://esm.sh/preact@10.15.1",
    "preact/": "https://esm.sh/preact@10.15.1/",
    "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.1.0",
    "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3",
    "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.2.3",
    "twind": "https://esm.sh/twind@0.16.19",
    "twind/": "https://esm.sh/twind@0.16.19/",
    "$std/": "https://deno.land/std@0.190.0/"
  },
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "preact"
  }
}
sebastiandotdev commented 1 year ago

I also have the same doubt, the twind autocomplete does not work for me in vscode

afifurrohman-id commented 1 year ago

See this issues for alternative solution https://github.com/denoland/fresh/issues/1519

xlboy commented 1 month ago

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.