Smart copy for diff files - Automatically removes
+/-symbols when copying code from patch files.
- 🎯 Smart Group Detection - Automatically detects consecutive lines with the same symbol (
+or-) - 📋 Clean Copy - Removes
+/-symbols automatically when copying - ⌨️ Keyboard First - Works seamlessly with
Ctrl+C/Cmd+C - 🖱️ Context Menu - Right-click to "Copy Without Diff Symbols"
- 🎨 Selection Support - Copy selected lines or let it auto-detect groups
- ⚡ Zero Configuration - Works instantly on
.diff,.patch, and.rejfiles
- Open VS Code
- Press
Ctrl+Shift+Xto open Extensions - Search for "Patch Picker"
- Click Install
Method 1: Auto-detect (Recommended)
- Open a diff/patch file
- Place cursor on any
+or-line - Press
Ctrl+C(orCmd+Con Mac) - All consecutive lines with the same symbol are copied without the symbols! 🎉
Method 2: Selection
- Select the lines you want to copy
- Press
Ctrl+C - Selected lines are copied without
+/-symbols
Method 3: Context Menu
- Right-click in the editor
- Select "Copy Without Diff Symbols"
@@ -1,8 +1,10 @@
function example() {
- const oldVariable = 'old value';
- console.log('This will be removed');
- return oldVariable;
+ const newVariable = 'new value';
+ console.log('This is new code');
+ console.log('Another new line');
+ return newVariable;
}Place cursor on + const newVariable = 'new value'; and press Ctrl+C
const newVariable = 'new value';
console.log('This is new code');
console.log('Another new line');
return newVariable;No more manual cleanup! ✨
Perfect for developers who frequently:
- 📝 Review pull requests and copy code snippets
- 🔧 Apply patches manually
- 📚 Extract code from diff files for documentation
- 🐛 Analyze changes in
.rej(reject) files - 💬 Share code snippets from diffs in chat/email
.diff- Standard diff files.patch- Git patch files.rej- Reject files from failed patches
| Scenario | Behavior |
|---|---|
Cursor on + line |
Auto-detects all consecutive + lines and copies without symbols |
Cursor on - line |
Auto-detects all consecutive - lines and copies without symbols |
| Selection active | Copies selected lines, removing +/- from each |
| Cursor on context line | Falls back to standard copy (preserves symbols) |
| Non-diff file | Standard copy behavior (extension inactive) |
After copying, the status bar shows:
✓ Copied 4 lines (without +/-)
- Visual Studio Code version 1.75.0 or higher
- No external dependencies
Found a bug or have a feature request?
- Check existing issues on GitHub Issues
- Open a new issue with details
- Pull requests are welcome!
- ✅ Auto-detect groups of
+or-lines - ✅ Remove diff symbols when copying
- ✅ Keyboard shortcut integration (
Ctrl+C) - ✅ Context menu support
- ✅ Selection mode support
- ✅ Status bar feedback
MIT License - see LICENSE file for details
If you find this extension helpful, please:
- ⭐ Star the repository
- 📝 Leave a review on the marketplace
- 🐦 Share with your team!
Made with ❤️ for developers who love clean code