Press Ctrl + / (backslash) to comment out the lines you've selected.Tips: in each line, there will be a blinking cursor/insertion cursor. Check again whether you've selected them all. ![]() To me personally, clicking the blank space right next to where the line ends seems to be easier than clicking in the middle of the line. Select the lines that you want to comment by holding Alt and click anywhere inside that line. Suppose the file is already opened in Visual Studio Code.Comment out multiple lines in different positions Press Ctrl + / (slash) to comment out the block you've selected.You can quickly select a long block by first collapsing it using the little arrow button next to the line number, then select from the beginning to the end of block. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |