Ask Your Question
1

What is the method to leave comments on multiple lines in Visual Studio Code?

asked 2023-07-03 23:06:52 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-03 23:29:02 +0000

devzero gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-03 23:06:52 +0000

Seen: 12 times

Last updated: Jul 03 '23