How to comment multiple lines in Visual Studio Code?

后端 未结 30 1963
感情败类
感情败类 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:17

    Shift+Alt+A

    Here you can find all the keyboard shortcuts.

    All VSCode Shortcuts

    PS: I prefer Ctrl+Shift+/ for toggling block comments because Ctrl+/ is shortcut for toggling line comments so it's naturally easier to remember. To do so, just click on the settings icon in the bottom left of the screen and click 'Keyboard Shortcuts' and find "toggle block...". Then click and enter your desired combination.

提交回复
热议问题