prettier-standard-vscode icon indicating copy to clipboard operation
prettier-standard-vscode copied to clipboard

adds newline after select + pasting (replacing with paste)

Open robbiemu opened this issue 6 years ago • 2 comments

I have no other linter -- no beautify, eslint, etc. When I enable this plugin, and follow these steps:

  1. create the document:
from here
to here
  1. select and copy 'from'
  2. select 'to' and paste

the result is:

from here
from
here

if I disable, and reload VSC, this behavior goes away. if I then reenable, the behavior does not return on first paste, but on subsequent pastes, it does.

-- in certain instances, the paste result is prefixed by a semicolon.. this I think happens when pasting over the entire line

robbiemu avatar Feb 13 '19 16:02 robbiemu

Also happens with me. Was working perfectly until today, when those new lines started appearing with each paste. I have this exactly same issue, word by word as reported.

ropinheiro avatar Oct 20 '20 12:10 ropinheiro

Here is some workaround:

image

I guess that all good developers hit CTRL+S each few seconds, so there is no real need for formatting on paste (hence, probably, this bug existing for almost 2 years with no solution).

ropinheiro avatar Oct 20 '20 12:10 ropinheiro