Vim icon indicating copy to clipboard operation
Vim copied to clipboard

The vscode original option[Copy With Syntax Highlighting] is not valid

Open klusfq opened this issue 2 years ago • 2 comments

Describe the bug The vscode original option[Copy With Syntax Highlighting] is not valid

To Reproduce First, I selected some code by mouse, then copy. when I paste code to other app (like OneNote), the highlight is disappeared. Second, I uninstall Vim extension, repeatly operation first step. The highlight code is valid.

Expected behavior I want copy code with hightlight.

Environment (please complete the following information):

  • Extension (VsCodeVim) version:
  • VSCode version: last
  • OS: mac os ventuna 13.2

klusfq avatar Mar 24 '23 03:03 klusfq

Also just hit this, this extension indeed seems to break copying and pasting with syntax highlighting into other apps, the copy metadata is missing, i can see this in web apps only get plain text copy through.

You can disable this functionality with the setting vim.overrideCopy as per the docs, it's unclear to me what the consequences are of changing this though.

Georgegriff avatar May 12 '25 21:05 Georgegriff

"vim.overrideCopy": false

dews avatar May 27 '25 07:05 dews