LLM Paste
Intelligent code merging extension that helps you update existing code with clipboard content, similar to how an LLM would handle code updates.
Features
- 🔄 Smart Code Merging: Intelligently updates existing functions and classes
- ➕ Automatic Additions: Adds new methods that don't exist in current code
- 🎯 Context-Aware: Preserves code structure and formatting
- 📝 Supports: JavaScript (including nested classes) and Python
- 🖱️ Easy Access: Available in editor context menu
How to Use
- Copy your updated code
- Right-click in the VS Code editor
- Select "Paste and Update"
- Your code will be intelligently merged!
Example
Your current code:
class Calculator {
add(a, b) {
return a + b;
}
}
Copy this updated version:
class Calculator {
add(a, b) {
console.log(`Adding ${a} and ${b}`);
return a + b;
}
multiply(a, b) {
return a * b;
}
}
After using "Paste and Update", your code will be updated while maintaining structure:
class Calculator {
add(a, b) {
console.log(`Adding ${a} and ${b}`);
return a + b;
}
multiply(a, b) {
return a * b;
}
}
Requirements
- Visual Studio Code 1.78.0 or higher
⚠️ Note: Please ensure you have backups of your code. The extension is provided "as is" without warranty.