How to comment multiple lines in Visual Studio Code?

后端 未结 30 2009
感情败类
感情败类 2020-11-28 00:23

I cannot find a way to comment and uncomment multiple lines of code in Visual Studio Code.

Is it possible to comment and uncomment multiple lines in Visual Studio Co

30条回答
  •  野性不改
    2020-11-28 01:14

    If you are using VSCode in a linux environment, then you can comment multiple lines by either:

    Selecting a block of code => then, press Ctrl + Shift + A (Block commenting)

    Or, selecting a block of code => then, press Ctrl + / (Single-line commenting applied to all selected lines)

    Hope this helps.

提交回复
热议问题