Vibe Cleaner
A VS Code extension that automatically cleans your code by:
- Removing emojis
- Replacing purple/violet colors with other colors (green, blue, red, orange, teal)
Cleaning happens automatically when you save any file. You can also use commands for manual control.
Test Content
Emojis: 😀 😃 😄 🔥 💯 ⭐ 🚀 💡 ✅ ❌
Purple colors: #800080 #9932CC #BA55D3 purple violet magenta rgb(128, 0, 128)
Features
- Auto-clean on save: Emojis removed and purple colors replaced automatically when you save - no action needed!
- Purple color replacement: Detects hex (#800080), rgb(), hsl(), and named colors (purple, violet, magenta, etc.)
- Manual commands: Use commands when you need more control
Usage
Emojis are removed automatically on save. For manual control:
- Open the Command Palette (
Ctrl+Shift+P / Cmd+Shift+P)
- Type "vibecleaner" to see available commands:
vibecleaner: file - Clean current file (emojis + purple colors)
vibecleaner: all - Clean entire project
Supported File Types
The extension processes common text-based files including:
- Source code:
.js, .ts, .py, .java, .cpp, .go, .rs, etc.
- Web files:
.html, .css, .scss, .vue, .svelte, etc.
- Config files:
.json, .yaml, .yml, .xml, .ini, etc.
- Documentation:
.md, .txt, .rst, etc.
Ignored Directories
The following directories are automatically skipped:
node_modules
.git
dist, build, out
__pycache__, venv
- And other common build/dependency directories
Installation
From Source
- Clone this repository
- Run
npm install
- Run
npm run compile
- Press
F5 to open a new VS Code window with the extension loaded
Package as VSIX
- Install vsce:
npm install -g @vscode/vsce
- Package:
vsce package
- Install the generated
.vsix file in VS Code
Development
# Install dependencies
npm install
# Compile
npm run compile
# Watch for changes
npm run watch
License
MIT
| |