Remove Emoji
One-click removal of all emojis from any file in VS Code (comments, strings, and content included).
Features
- One-click operation: Click the 🙂 button in the editor toolbar
- Universal support: Works with all file types (JavaScript, HTML, CSS, Markdown, JSON, etc.)
- Comprehensive: Removes emojis from comments, strings, and all text content
- Safe editing: Single transaction with full Undo/Redo support
- Smart cleanup: Handles spacing and formatting after emoji removal
Usage
- Open any file in VS Code
- Click the 🙂 (smiley) button in the editor toolbar
- Done! If emojis were found, you'll see a message like:
Removed 7 emoji(s).
What gets removed
The extension removes all Unicode emojis including:
- Basic emojis: 😊 😂 🤔
- Complex sequences: 👩👩👧👦 (family)
- Skin tone modifiers: 👍🏻 👍🏿
- Country flags: 🇺🇸 🇰🇷
- Symbols: ✅ ❌ ⭐
Example
Before:
// Welcome message 🎉
function greetUser(name) {
console.log(`Hello ${name}! 😊 Welcome! 🌟`);
return "Success! ✅";
}
After:
// Welcome message
function greetUser(name) {
console.log(`Hello ${name}! Welcome!`);
return "Success!";
}
Requirements
- VS Code 1.90.0 or higher
- Any text-based file
Installation
From .vsix file
- Download the
.vsix file
- Open VS Code
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type "Extensions: Install from VSIX"
- Select the downloaded
.vsix file
From source
- Clone this repository
- Run
npm install
- Run
npm run build
- Press
F5 to launch in development mode
Development
Building
npm install
npm run build
Running in development
npm run watch # Watch mode for development
Then press F5 in VS Code to launch the extension development host.
Packaging
npm install -g vsce
vsce package
Technical Details
- Emoji detection: Uses
emoji-regex library with fallback to Unicode properties
- Safety: Operates on any file with active editor validation
- Performance: Optimized for large files with efficient regex patterns
- Formatting: Preserves code structure while cleaning up extra spaces
Notes
- Works with all file types including JavaScript, Python, HTML, CSS, Markdown, JSON
- Edits are applied as a single transaction (easy Undo with
Ctrl+Z )
- The extension respects VS Code's editing permissions and constraints
- No external network requests - all processing is local
License
MIT License - See LICENSE file for details
| |