Shortcuts in VSCode
For a single-line comment, use the Ctrl + /
key combination on Windows or Linux or Cmd + /
on a Mac.
For a block comment, use Shift + Alt + A
on Windows or Linux or Shift + Option + A
on a Mac instead.
To comment out code, you can press Ctrl + K + C
on Windows or Cmd + K + U
on Mac.