![]() You can also CTRL + K and then CTRL + C to comment multiple linesįor uncommenting multiple lines you can use CTRL + K then CTRL + U On Ubuntu, the shortcut is Ctrl + Shift + A, similar to Mac.Then you can simply click on "Alt+Shift+A" in Windows or "Ctrl + Shift +A" in Mac to comment or uncomment selected lines, as you can see in given image.Select a block of code using your mouse or keyboard If the file is already opened in Visual Studio Code. ![]() Here are the simple steps, to comment out or uncomment multiple lines of code in Visual Studio Code IDE. Comment out multiple lines of selected code Method:1 ![]() In previous article, I have mentioned Useful Visual Studio Shortcuts (comment, remove comment, Collapse code etc ) but in this article, I have mentioned how to comment out multiple lines in Visual Studio Code.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |