any way to get tailwind css autocomplete inside of...
# random
a
any way to get tailwind css autocomplete inside of string literals of kotlin files? i have the official jetbrains tailwindcss plugin but it doesnt do the thing
y
There's the
@Language
annotation. There's also the action "Inject Language or Reference" which does the same thing
a
how do i get the annotation? couldnt figure it out, ended up copy pasting it in my project from somewhere, and it does work for html, but it doesnt bring in tailwind css autocomplete
y
You can also learn language IDs in settings. Press ⌘
Сmd0,
to open settings and then select Editor | language Injections. Double-click an injection rule for a language; the language ID is specified in the ID field.
Haven't used Tailwind with IntelliJ before, but see if there's a relevant ID in the settings
a
tailwind is not a language. i cant see it in the language injections list
y
Does highlighting work in normal HTML files? If so, I think the tailwind plugin is doing something weird. My understanding is that
@Language("HTML")
should function exactly like a file would
t
any way to get tailwind css autocomplete inside of string literals of kotlin files?
GitHub Copilot does this for me 😄
a
@theapache64 doesnt fit my use case. i want to be able to list all available classes so that i can pick which one i need. i want this because i forget how an effect is done in tailwind and dont want to search the web
👍 1