Reputation: 99
I am trying to copy/paste several lines of code, but it appears that the behavior for this has changed and I'm not sure how to correct this.
When I select multiple words (cursor on each word). Copy. Place the same number of cursors somewhere else. Paste. Instead of pasting one word with each cursor, it is pasting all words where the last cursor is located.
Versions:
Is there a setting that I am unaware of? I haven't found a setting that affects this. And any search I do is a variation of this question. The answer in this question shows the desired/expected behavior.
Upvotes: 3
Views: 917
Reputation: 99
I submitted a bug to VS Code and @alexandrudima helped me find the answer.
Both workarounds suggested worked for me, but I also found that Ctrl+Shift+V
, @KamalHalim's answer, worked as well.
Upvotes: 1
Reputation: 21
When you select multiple words (cursor on each word). Copy. Place the same number of cursors somewhere else in a series (as you state in your example). Paste.
Ctrl + Shift + V
This also work is when you place the cursor on different line as well (same number of cursor as copied)
Upvotes: 2