copy2md
A VSCode extension that helps you copy code and files as Markdown with proper formatting.
Features
Copy Selection → Markdown:
- Select code in the editor
- Right-click and choose "Copy Selection → Markdown"
- The selected code is copied with:
- Project name
- File path
- Line numbers
- Language-specific syntax highlighting
Copy File → Markdown:
- Works in both editor and explorer:
- Right-click in editor to copy current file
- Select file(s) in explorer to copy multiple files
- Supports both code files and images
- Includes project name and relative paths
- Maintains code structure with language detection
Copy Tabs → Markdown:
- Right-click in editor and choose "Copy Tabs → Markdown"
- Copies all currently opened editor tabs
- Handles both code files and images
- Includes project name and paths
- Uses proper language detection for syntax highlighting
Installation
- Open Visual Studio Code
- Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X)
- Search for "copy2md"
- Click Install
Or install from VS Code Marketplace
Requirements
- Visual Studio Code version 1.60.0 or higher
License
MIT License - see the LICENSE file for details.
Links
| |