Retain rich text properties (syntax highlighting) when yanking text
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
visual mode selected text copied from VSC using Ctrl + C and pasted into other apps looses syntax highlighting.
Although if we Copy text using VSC Right Click menu option, then it retains syntax highlighting, wherever we paste.
e.g. into Outlook or OneNote
To Reproduce
- To visual select few line : Shift + V
- To copy text to system clipboard : Ctrl + C
- To paste into OneNote : Ctrl + V
Expected behavior
Preserve syntax highlighting colors as they are preserved while Right Click + Copy option
Screenshots
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.20.2
- VSCode version: 1.56.2
- OS: Windows
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VS Code on Windows by comparing visual-mode Ctrl+C with the context-menu Copy, then paste both results into OneNote or Outlook. Trace the extension's clipboard handling and confirm that yanked text preserves the syntax-highlighting formatting when pasted into other applications.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100