tailwindlabs / discuss

A place to ask questions, get help, or share what you've built with Tailwind CSS.
MIT License
171 stars 9 forks source link

Tailwind Autocomplete #55

Open jay7793 opened 6 years ago

jay7793 commented 6 years ago

Because Tailwind it has a lot of classes. I can't remember all of class. If there have autocomplete i think is good help.

Bootstrap 4 autocomplete reference https://github.com/webchun/bootstrap-4-sublime-autocomplete

Uikit autocomplete reference https://github.com/uikit/uikit-sublime

MichaelDeBoey commented 6 years ago

There's already IntelliSense in Visual Studio Code šŸ™‚ https://codeburst.io/tailwind-css-intellisense-in-visual-studio-code-9782375ec121

Haven't seen it for other editors yet unfortunately šŸ˜•

manniL commented 6 years ago

For JetBrains IDEs (WebStorm, PHPStorm, IntelliJ...), autocomplete works as soon as the first output.css is created, because it'll read the classes from there.

Radostin commented 6 years ago

The problem really comes, when you need to use the @apply rule:

screen shot 2017-11-15 at 07 06 52
KKSzymanowski commented 6 years ago

@Radostin Have you managed to get autocompletion to work with @apply?

sadiqevani commented 5 years ago

Any solution on highlighting and autocompletion for tailwind in JetBrains IDEs?

SHxKM commented 5 years ago

Iā€™m also looking for a Tailwind autocomplete solution for JetBtains IDEs.

mccare commented 5 years ago

What worked for me was to just create the output.css file manually and jetbrains picked up the css definitions automatically (here in assets/css directory of a nuxt app).

npx tailwind build tailwind.css -o output.css  -c ../../tailwind.js
SHxKM commented 5 years ago

What worked for me was to just create the output.css file manually and jetbrains picked up the css definitions automatically (here in assets/css directory of a nuxt app).

npx tailwind build tailwind.css -o output.css  -c ../../tailwind.js

This works well for auto-complete in the components themselves, thank you. It still isn't available in .scss files where rules are defined globally. IDE also still shows syntax errors for directives like @tailwind and @apply.