Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Remove EmojiNew to Visual Studio Code? Get it now.
Remove Emoji

Remove Emoji

LimDonghyun

|
1 install
| (0) | Free
Remove all emojis from the active file (comments/strings included).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Open any file in VS Code
  2. Click the 🙂 (smiley) button in the editor toolbar
  3. 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

  1. Download the .vsix file
  2. Open VS Code
  3. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  4. Type "Extensions: Install from VSIX"
  5. Select the downloaded .vsix file

From source

  1. Clone this repository
  2. Run npm install
  3. Run npm run build
  4. 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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft