Check out example codes for "vscode comment block of code html". It will help you in understanding the concepts better.

Code Example 1

Ctrl + /

Code Example 2

Ctrl+K+C
Ctrl+K+U

Code Example 3

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


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

Learn ReactJs, React Native from akashmittal.com