Answers for "vscode comment all selected lines"

2

vs code select every lines

[1] Press: Ctrl + H
[2] Check the regex icon: .*
[3] In the find field, enter the following (replace N with the number of lines to select: 2 for every 2nd, 10 for every 10th):
(.*n){N}
example: (.*n){5} for selecting every 5th line
[4] Press: Alt + Enter
[5] Move the multiple cursors with your arrow keys (and/or type what you want)
Posted by: Guest on July-22-2021
0

vscode fold comments

// Works with JSDoc style comment blocks
// change vscode settings:
"editor.foldingStrategy": "indentation"
Posted by: Guest on February-04-2020

Browse Popular Code Answers by Language