When I start typing p
inside a React component, it suggests some functions, but I want Tailwind CSS classes to appear first in the autocomplete suggestions instead. Is there a way to configure my editor or settings so that Tailwind classes take priority?
Please refer the image if my explanation is not clear enough.
When I start typing p
inside a React component, it suggests some functions, but I want Tailwind CSS classes to appear first in the autocomplete suggestions instead. Is there a way to configure my editor or settings so that Tailwind classes take priority?
Please refer the image if my explanation is not clear enough.
Share Improve this question edited 7 hours ago rozsazoltan 8,1905 gold badges17 silver badges38 bronze badges asked 7 hours ago aanish27aanish27 11 bronze badge 3 |1 Answer
Reset to default 0No. There's no way to do that. However, if we look deeper into the issue, the hint itself doesn't offer much help, as it lists many similar classes, e.g., p
for example: p-1
, p-2
, p-3
... p-72
. Typing them out is easier than selecting them from the hint. The hint, in my opinion, is primarily meant to reinforce that you're using a valid class name or variant while typing.
print:
variant. – rozsazoltan Commented 7 hours agop
at the front. After all, I wouldn't choosep-{number}
for the hint, orpt-{number}
, etc., the hint would be very weak here. – rozsazoltan Commented 7 hours ago