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

前端 未结 16 790
天涯浪人
天涯浪人 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:41

    The keyboard commands...

    Ctrl + / - Windows & Linux
    Cmd + / - MacOS

    ...now work as expected for single line and block code by adding {/* */} around the selected lines.

    It has been fixed in recent Insiders builds of Visual Studio Code and will make it into the next full release.

提交回复
热议问题