Comment and Uncomment Multiple Lines of Code With VS Code

One of my favourite VS Code functionality is commenting and uncomment multiple lines of code using a keyboard shortcut.

This post will show how to use VS Code to do the above, save time, and be more productive with coding and VS Code.

Comment

To comment multiple lines of code using VS Code, we use the following keyboard keys:

Ctrl + k + c

After using the above keys, the code will look like this:

Uncomment

To do the opposite and uncomment multiple lines of code, use the following keys.

Ctrl + k + u

Leave a comment

Your email address will not be published. Required fields are marked *