VS Code / Cursor extension that copies selected text as plain text, removing Markdown and HTML markup while preserving line breaks and indentation.
- Markdown → Plain Text: Removes
**,__,*,_, headers (#), links ([text](url)→text), etc. - HTML → Plain Text: Strips HTML tags, converts
<br>,<p>,<div>to line breaks,<li>to list items - Preserves Structure: Keeps line breaks, indentation, and code block content
- Auto-detection: Automatically detects content type (HTML, Markdown, or plain text)
- Copy as Plain Text - Available in Command Palette (
Cmd/Ctrl + Shift + P)
Cmd + Shift + C(macOS)Ctrl + Shift + C(Windows/Linux)
Right-click on selected text → "Copy as Plain Text"
## Title
- item 1
- item 2
**Bold text** and [link](https://example.com)Title
- item 1
- item 2
Bold text and link
<ul>
<li>One</li>
<li>Two</li>
</ul>
<p>Paragraph with <strong>bold</strong> text.</p>- One
- Two
Paragraph with bold text.
- VS Code: VS Code Marketplace
- Cursor / Open VSX: Open VSX Registry
Or search for "Copy as Plain Text" in the Extensions panel.
If you find this extension useful, please consider rating it or leaving a review:
- VS Code Marketplace: Rate on VS Code Marketplace
- Open VSX: Rate on Open VSX
- GitHub: ⭐ Star on GitHub
Your feedback helps improve the extension and reach more users!
- Clone the repository
- Run
npm install - Run
npm run compile - Press
F5to launch Extension Development Host
npm install -g @vscode/vsce
vsce packageThen install the .vsix file via VS Code: Extensions → ... → Install from VSIX
- VS Code 1.74.0 or higher
- Cursor (any version based on VS Code 1.74.0+)
MIT