Clean Paste 🧹
"I wrote this code myself, I swear" - You, probably
The Problem We All Pretend Doesn't Exist
Let's be honest. It's 2025 (or beyond, hello future developers 👋). You're copying code from ChatGPT, Claude, Copilot, or whatever AI overlord you're currently serving. The code works great, but it comes with... comments.
So. Many. Comments.
// This function calculates the sum of two numbers
// Parameters:
// - a: The first number to add
// - b: The second number to add
// Returns: The sum of a and b
function add(a, b) {
// Add the two numbers together
return a + b; // Return the result
}
We get it, AI. It adds numbers. Thanks.
You could manually delete them. You could do a find-and-replace. You could accept your fate and leave them there, slowly dying inside every time you see // This line does exactly what it looks like it does.
Or, you could use Clean Paste.
Features
One Keybind to Rule Them All - Press Alt+V and paste code without comments. That's it. That's the feature.
Language Support for Days - Works with 20+ languages because we know you're copying Python snippets into your JavaScript project at 3 AM:
- JavaScript / TypeScript (and their React variants, you component warrior)
- Python (including preservation of those sacred docstrings)
- Java, C, C++, C#, Go, Rust
- Ruby, Shell scripts
- HTML, XML, Markdown
- CSS, SCSS, LESS
- YAML, Dockerfile, JSONC
String-Aware - Won't accidentally murder your "// this is a string, not a comment" because we're not animals.
Preserves Your Formatting - Removes the comment AND the empty line it leaves behind. Your code stays clean, your indentation stays intact, your dignity stays... well, we can't help with that part.
Installation
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X)
- Search for "Clean Paste"
- Click Install
- Question your career choices
- Press
Alt+V to paste without comments
Usage
| What You Want |
What You Press |
| Paste normally (with comments, like a peasant) |
Ctrl+V |
| Paste WITHOUT comments (ascended) |
Alt+V |
That's the whole documentation. You're welcome.
Examples
Before (The AI Experience™)
# Import the os module for operating system functionality
import os # This allows us to interact with the operating system
# Define a function to list files in a directory
def list_files(path):
# Use os.listdir to get all files
# This returns a list of filenames
return os.listdir(path) # Return the list
After (Clean Paste)
import os
def list_files(path):
return os.listdir(path)
Ah, much better. Now it looks like YOU wrote it.
| Style |
Languages |
Example |
// single line |
JS, TS, Java, C, C++, C#, Go, Rust, SCSS, LESS, JSONC |
// AI was here |
/* block */ |
JS, TS, Java, C, C++, C#, Go, Rust, CSS, SCSS, LESS |
/* AI was definitely here */ |
# hash |
Python, Ruby, Shell, YAML, Dockerfile |
# AI never left |
<!-- HTML --> |
HTML, XML, Markdown |
<!-- AI lives here now --> |
=begin...=end |
Ruby |
=begin AI manifesto =end |
Known Issues
- Doesn't remove your imposter syndrome - That's a feature, not a bug
- Won't make you a better programmer - But it'll make you look like one
- May cause addiction to clean code - Side effects include productivity and self-satisfaction
FAQ
Q: Is this cheating?
A: We prefer the term "efficient knowledge transfer."
Q: Will my coworkers know I used AI?
A: Not if you use Clean Paste. taps forehead
Q: What if I actually WANT the comments?
A: Then use regular paste like everyone else? Also, are you okay?
Q: Does this work with [obscure language]?
A: Probably not. Feel free to open an issue and we'll think about it while copying the solution from an AI.
Contributing
Found a bug? Want to add support for COBOL comments?
- Fork the repo
- Make your changes
- Submit a PR
- We'll review it (by which we mean we'll ask an AI to review it)
Release Notes
See CHANGELOG.md for the full history of our descent into AI-assisted madness.
0.0.1
- Initial release
- We're all in this together now
Enjoy! 🎉
Made with 🤖 by a human (with significant AI assistance, obviously)