vscode-overtype icon indicating copy to clipboard operation
vscode-overtype copied to clipboard

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

Open pewscorner opened this issue 6 years ago • 0 comments

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.

pewscorner avatar Sep 23 '18 13:09 pewscorner