comment multiple lines in visual studio code example

Example 1: visual studio code uncomment multiple lines

shift+alt+A

Example 2: vscode comment block of code html

********** For Mac **************
-> How to comment a block?
  
Command + K + C


-> How to uncomment a block?
  
Command + K + U

Example 3: comment highlighted text visual studio

ctrl+k+c Will comment out the selected chunk of code in VS Code.

Example 4: how to comment selection in visual studio

In Visual Studio: Ctrl+K+C will comment, Ctrl+K+U Will uncomment

Example 5: how to comment multiple lines in vscode

********** For Windows **********
-> How to comment a block?

CTRL + K + CTRL + C 

-> How to uncomment a block?

CTRL + K + CTRL + U

Example 6: multiline comment in visual studio code shortcut

shift + alt + A

Tags:

Cpp Example