AdamMaras / vscode-overtype

Because some people actually press the Insert key on purpose.
https://marketplace.visualstudio.com/items?itemName=adammaras.overtype
BSD 2-Clause "Simplified" License
33 stars 15 forks source link

Pasting a column in overtype mode doesn't work as expected #10

Open pewscorner opened 6 years ago

pewscorner commented 6 years ago

VS Code uses "multiple cursors" to do what some other editors do with "column mode" or "block select mode". However, I can't find a way to sensibly paste a column of text in overtype mode in VS Code.

Let's say we have the following text:

123456
abcdef

Now we use multiple cursors to select and copy the last two characters in both lines. Then we move the multiple cursors back to the start of the lines and paste. Voila, the copied column gets pasted correctly:

56123456
efabcdef

But if we do the same thing with overtype mode enabled, we get this unexpected result where the rest of each line is lost:

56
ef

Here's the expected result (i.e. the pasted text should overwrite the first 2 characters of each line):

563456
efcdef

TextPad handles this nicely in block select mode.

Edit: I am of course using "overtype.paste": true.