visual-studio-codekeyboard-shortcuts

How to comment multiple lines in Visual Studio Code?


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 Code using some shortcut? If yes, how to do it?


Solution

  • First, select the lines you want to comment/uncomment (CTRL+L is convenient to select a few lines)

    Then:

    See the official doc : Key Bindings for Visual Studio Code