What is the problem that VScode cannot use {/ * xxxx * /} automatically when commenting on jsx in react file?

when VScode comments the jsx in the react file, is there any configuration missing from the / / used in front of the code?

Mar.15,2021

should be caused by the vscode plug-in Babel ES6/ES7
using Babel JavaScript

instead of this plug-in, solve the annotation problem and keep the es6/7 code color correct


see if you have enabled the plug-in babel, to disable it. It took me a long time to find out why.


Hello, have you solved this problem? I have also encountered the same problem. May I ask how to solve


clipboard.png
choose JavaScript React

Menu