Home python Multiple line comment of Visual Studio Code

Multiple line comment of Visual Studio Code

Author

Date

Category

Watching various guides on YouTube, I saw people commenting several lines at once using the # symbol, tell me what keyboard shortcut allows you to do this?


Answer 1, authority 100%

Ctrl + K and then Ctrl + C comments out the selected lines with # . Ctrl + K and then Ctrl + U removes the comment from lines. For Mac OS, use Cmd instead of Ctrl .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions