VSCode Keyboard Shortcut: How To Add Single and Multiple Line Comments (Wrap Text Selection)

preview_player
Показать описание
(We're free online community, meet other makers!)

In this tutorial I'll show you the vscode keyboard shortcut you can use to wrap a piece of selected text or code in single line or multi-line comments. This works on CSS, HTML, JavaScript, Python, C, C++, TypeScript and all other languages.

00:00 How to add single and multiple line comments in VSCode
00:17 Wrap selected text by adding single line comment around code
00:32 Add multi line comment to selected text in vs code
Рекомендации по теме
Комментарии
Автор

I have VS Code 1.82.3 and what you said doesn't work for me. My VS Code 1.82.3 came by default with 'Ctrl+K' to do the multiple lines comments (with python file it adds # to all the selected lines) and 'Ctrl+Shift+K' to erase the multiple comments you did.

naduarte
Автор

The audio is dreadful. Why did you leave it like that? Unwatchable.

ZigSputnik
Автор

my guy's talking thru a submarine

mistathenicepersonthatwont