How to comment JSX code out in .js files in VSCode?

前端 未结 16 795
天涯浪人
天涯浪人 2020-12-02 18:02

Unlike in webstorm, I\'m unable to comment JSX code out in .js files in the Visual Studio Code.

16条回答
  •  不思量自难忘°
    2020-12-02 18:50

    Try to disable all plugins, because they can change editor's behaviour. For example if use Babel ES6/ES7 plugin, editor comments .jsx syntax by // instead of {/*. You see see the issue here.

提交回复
热议问题