Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin doesn't work in VSCode #232

Closed
Sahasrara opened this issue Dec 6, 2023 · 4 comments
Closed

plugin doesn't work in VSCode #232

Sahasrara opened this issue Dec 6, 2023 · 4 comments

Comments

@Sahasrara
Copy link

What version of prettier-plugin-tailwindcss are you using?

0.4.1

What version of Tailwind CSS are you using?

3.3.6

What version of Node.js are you using?

21.2.0

What package manager are you using?

pnpm, npm, and yarn (tried them all)

What operating system are you using?

Windows

Reproduction URL

https://github.com/Sahasrara/TailwindPluginRepro

Describe your issue

The prettier plugin isn't sorting classes. Try changing and saving Tobbar.svelte. The class list won't sort.

@adamwathan
Copy link
Member

Hey! It looks like you don't have prettier-plugin-tailwindcss installed:

https://github.com/Sahasrara/TailwindPluginRepro/blob/main/package.json#L27-L28

After cloning your project, installing the plugin, and restarting VS Code, it is sorting classes for me as expected:

Untitled.mov

@Sahasrara
Copy link
Author

My goodness, thanks! I had replicated this repo using the project that wasn't working. Since this works, I decided to go with this and copy over the other project until it stops working.

I'm not sure what's different between the two, but I'm good now.

@kgnfth
Copy link

kgnfth commented Jan 4, 2024

@Sahasrara You may change the about text 😂
image

@devbyray
Copy link

devbyray commented Jul 3, 2024

Hey! It looks like you don't have prettier-plugin-tailwindcss installed:

https://github.com/Sahasrara/TailwindPluginRepro/blob/main/package.json#L27-L28

After cloning your project, installing the plugin, and restarting VS Code, it is sorting classes for me as expected:

Untitled.mov

Restarting Visual Studio Code fixed it for me as well 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants