I want to add increased number for multi selected caret in visual studio code. now, When I type it write same words.
But I would like to add increased number by some shortkey so that I don't need to update each one manually. Preferred result should be like this.
I want to know if this is possible in vs code.
Thanks
CodePudding user response:
You can do it with Increment Selection or Text Pastry
CodePudding user response:
You can use the extension Regex Text Generator
Define the following key binding
{
"key": "ctrl shift f9", // or any other key combo
"when": "editorTextFocus",
"command": "regexTextGen.generateText",
"args": {
"generatorRegex" : "{{=i 1}}"
}
}
- place the multi cursors after
index:
- press the key combo
- accept or modify the inputs
- look at the preview, press
Enter
if you like it,Esc
to abort