A
A
Artem Prokhorov2022-01-20 13:54:35
Visual Studio Code
Artem Prokhorov, 2022-01-20 13:54:35

How to comment out multiple lines of code with a single line "//"?

I just got fed up that if I commented out a whole block, and then I needed to uncomment something, I had to uncomment everything, then leave something in the middle and re-comment the upper and lower parts.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-01-20
@vabka

Highlight the lines you want to comment out and press "Toggle Line Comment"
Similarly to uncomment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question