简体   繁体   中英

JavaScript syntax highlighting with Reactjs went away in VSCode

previously i don't remember configuring anything separately when working with React on VSCode, recently i had to clean install OS on my device but after that in VSCode my JavaScript Syntax highlighting broke here's the screenshot , been trying to fix it since yesterday but to no avail, what can i do to fix it?

Syntax highlighting seems to work on the screenshots provided. On the bottom bar of VSCode you should have a button for Selecting Language mode this should be AutoDetect or JSX in your case.

Sometimes my all extensions stop working. I relaunch VSCode few times and it fixes my problem.

Fixed: I had to re-install VSCode in order to fix this issue

IMPORTANT: after uninstalling you need to navigate to C Drive and delete every data folder of VSCode left after uninstallation before re-installing it again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM