kufii / CodeSnap

📸 Take beautiful screenshots of your code in VS Code!
https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap
508 stars 67 forks source link

Text is being copied on highlight while preview is open #121

Open danulqua opened 1 year ago

danulqua commented 1 year ago

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?

KrappRamiro commented 1 year ago

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

maxschmi commented 8 months ago

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