CodeSnap icon indicating copy to clipboard operation
CodeSnap copied to clipboard

Text is being copied on highlight while preview is open

Open danulqua opened this issue 3 years ago • 3 comments

Text is being copied on highlight while preview is open

Steps to reproduce

  1. Activate Codesnap so the preview tab appears;
  2. Highlight any text using any methods (mouse, hotkeys etc.);
  3. It's being copied to the clipboard even though you didn't press cmd+C/ctrl+C for copying;
  4. To make sure - press cmd+V/ctrl+V immediately after highlighting.

Maybe, Visual Studio Code has an API that allows you to get text which is being highlighted at the moment?

danulqua avatar Nov 10 '22 14:11 danulqua

The same is happening to me, no clue how to solve it

KrappRamiro avatar Jan 25 '23 23:01 KrappRamiro

This problem bothers me too. Is there any work to solve this? I think the problem is that the extension is using the VSCode option "editor.action.clipboardCopyWithSyntaxHighlightingAction". See Code

maxschmi avatar Nov 07 '23 13:11 maxschmi