code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Select and paste over

Open avelino opened this issue 7 years ago • 5 comments

Cannot overwrite selected text with copy and paste

  • code-server version: master branch
  • OS Version: Ubuntu

Steps to Reproduce

  1. Copy (CMD+C) any text to clipboard
  2. Select text any input (editor or text fields), per example CMD+A
  3. Paste (CMD+V) clipboard

avelino avatar Mar 09 '19 09:03 avelino

I also have the problem. Because the text selected will be copy, the origin clipboard was replace. Even change setting is still unhelpful: "editor.copyWithSyntaxHighlighting": false, "editor.emptySelectionClipboard": false

heegreis avatar Mar 10 '19 12:03 heegreis

Thanks, working set 3 config

"editor.copyWithSyntaxHighlighting": false,
"editor.emptySelectionClipboard": false,
"editor.selectionClipboard": false,

avelino avatar Mar 10 '19 14:03 avelino

Commenting in here. Why do we need to add these 3 configs? Vanilla VSCode doesn't have copy-on-select enabled. Why does code-server? Extremely confusing and frustrating

jondavidschober avatar Mar 14 '19 04:03 jondavidschober

https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.ieditorconstructionoptions.html#selectionclipboard

Is VSCode config not code-server config

avelino avatar Mar 14 '19 07:03 avelino

Maybe this should be left open until the default behavior is to NOT copy on select? Or is the current default the expected behavior?

kbrose avatar Mar 15 '19 16:03 kbrose