Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

VSCODE intellisense not picking up css code in jsx file

I have been trying to figure out why vs code is not picking up CSS language inside the JSX file. When I’m writing CSS IntelliSense does not offer suggestions for CSS it only shows emmet suggestions.snapshot of jsx file

I have downloaded different extensions like JS JSX Snippet or styled-jsx hoping I am missing an extension and they did not work. In the video that I’m following on youtube, inside the BoxContainer the key and value width:280px for the CSS code have different colors to mine where mine is just brown throughout, for the instructor it’s aqua and mint.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You are using styled-components. There’s an extension to VSCode to syntax highlight that style code (since it’s not really SASS).

https://marketplace.visualstudio.com/items?itemName=styled-components.vscode-styled-components

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading