June 6th, 2022: VS Code Tip of the Week

Tailwind uses a bunch of non-standard at-rules like @tailwind and @apply, so you get lint warnings in VS Code if you use the regular CSS language mode.

To get around this, we’ve always recommended people use the PostCSS Language Support plugin which …


This content originally appeared on DEV Community and was authored by Nick Taylor (he/him)

Tailwind uses a bunch of non-standard at-rules like @tailwind and @apply, so you get lint warnings in VS Code if you use the regular CSS language mode.

To get around this, we’ve always recommended people use the PostCSS Language Support plugin which gets rid of those warnings, but also removes all of the other CSS IntelliSense support.

You can read more about the new Tailwind CSS language mode for VS Code

Since that then, the Tailwind team has release Tailwind CSS Intellisense

Tailwind CSS Intellisense extension missing on one side showing lint errors and on the other side the Tailwind CSS Intellisense extension enabled with no errors

Once you have the extension installed, if you want to try it out choose “Tailwind CSS” as the language mode for your CSS files.

Thanks Tailwind team and happy VS Coding!


This content originally appeared on DEV Community and was authored by Nick Taylor (he/him)


Print Share Comment Cite Upload Translate Updates
APA

Nick Taylor (he/him) | Sciencx (2022-06-07T02:39:25+00:00) June 6th, 2022: VS Code Tip of the Week. Retrieved from https://www.scien.cx/2022/06/07/june-6th-2022-vs-code-tip-of-the-week/

MLA
" » June 6th, 2022: VS Code Tip of the Week." Nick Taylor (he/him) | Sciencx - Tuesday June 7, 2022, https://www.scien.cx/2022/06/07/june-6th-2022-vs-code-tip-of-the-week/
HARVARD
Nick Taylor (he/him) | Sciencx Tuesday June 7, 2022 » June 6th, 2022: VS Code Tip of the Week., viewed ,<https://www.scien.cx/2022/06/07/june-6th-2022-vs-code-tip-of-the-week/>
VANCOUVER
Nick Taylor (he/him) | Sciencx - » June 6th, 2022: VS Code Tip of the Week. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/06/07/june-6th-2022-vs-code-tip-of-the-week/
CHICAGO
" » June 6th, 2022: VS Code Tip of the Week." Nick Taylor (he/him) | Sciencx - Accessed . https://www.scien.cx/2022/06/07/june-6th-2022-vs-code-tip-of-the-week/
IEEE
" » June 6th, 2022: VS Code Tip of the Week." Nick Taylor (he/him) | Sciencx [Online]. Available: https://www.scien.cx/2022/06/07/june-6th-2022-vs-code-tip-of-the-week/. [Accessed: ]
rf:citation
» June 6th, 2022: VS Code Tip of the Week | Nick Taylor (he/him) | Sciencx | https://www.scien.cx/2022/06/07/june-6th-2022-vs-code-tip-of-the-week/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.