Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmd/Ctrl + C does not copy with syntax highlight #2398

Closed
gnapse opened this issue Feb 20, 2018 · 2 comments
Closed

Cmd/Ctrl + C does not copy with syntax highlight #2398

gnapse opened this issue Feb 20, 2018 · 2 comments

Comments

@gnapse
Copy link

gnapse commented Feb 20, 2018

BUG REPORT

What happened

When copying code using Cmd+C, it does not copy in the clipboard the html version of what was copied, which is html rendering the code with the syntax highlight and everything, as it looks like while in the editor.

What did you expect to happen

I expect Cmd + C to copy not only the text version of the code, but also the syntax-highlighted version, as it occurs when this extension is not installed.

How to reproduce it

  1. Open any file with syntax highlight, select a block of text and press Cmd+C or Ctrl + C.
  2. Open a rich text editor, such as Microsoft Word, or Apple Pages, or Libre/Open Office.
  3. Paste into a blank document what you just copied. See that what you got is plain text.

Try the first two steps above with this extension disabled, and on step 3 you'll get the syntax highlighted version of that code instead.

Environment

  • Extension (VsCodeVim) version: 0.10.13
  • VSCode version: 1.20.1
  • OS version: macOS High Sierra

Cross reference

Also, for reference, follow this thread from this comment on, where I started discussing this issue assuming it was the problem of another extension, that it turns out expects you to be able to copy the syntax-highlighted version of the code. After digging a bit, I realized it was not that extension's fault, but this one instead.

@gnapse
Copy link
Author

gnapse commented Jun 3, 2018

Hello? Is anybody out there?

@jpoon
Copy link
Member

jpoon commented Dec 17, 2018

With #3261, this is now supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants