Is it possible to do pasting in multiline editing (cursor |):
text1 = [|] text2 = [|] text3 = [|] text4 = [|]
Assuming I have pasted the following lines:
val1 val2 val3 val4
I would like to have this result:
text1 = [val1] text2 = [val2] text3 = [val3] text4 = [val4]
What actually happens is that the clipboard content is pasted four times, once for each cursor.
Something like mentioned in this answer, but instead of typing simply pasting: https://stackoverflow.com/a/30039968/1374488
“duplicate a line multiple times in vscode” Code Answer'sOn Windows: Shift + Alt + Up/Down. On Mac: Shift + Option + Up/Down. On Ubuntu: Ctrl + Shift + Alt + Up/Down.
Select the lines you want and then press: Windows: Shift + Alt + i.
Copy the block from within Visual Studio and then use Shift + Alt again to select the column you want to paste it to. You can then paste it. The same as you would in Notepad++.
Use column-edit instead of the multi-line edit mode:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With