Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To leave comments on multiple lines in Visual Studio Code, use the block comment feature by following these steps:

  1. Highlight the lines that you want to comment.

  2. Press and hold Shift + Alt and then press A.

  3. The selected lines will be wrapped in a block comment.

  4. Type your comment text.

  5. Press Enter to create a new line within the block comment, if needed.

  6. Press Shift + Alt + A again to remove the block comment when you are finished.