Here is a step-by-step guide on how to comment multiple lines in VS Code. Note that different programming languages use different symbols to indicate comments:
- To comment multiple lines in VS Code, go to the code editor where the syntax-highlighted code appears.
- Highlight multiple lines in the code editor by dragging your cursor. Then press Shift + Option + A on Mac, or Shift + Alt + A on Windows to comment those lines.
- Once done, the syntax-highlighted code will turn green, indicating a comment has been placed for the computer to ignore, and the presence of /* ... */ shows that it is a multi-line comment (for Javascript code).




