Nexmoji VS Code Extension

Remove emojis and stickers from AI-generated code and text with intelligent context awareness.
Clean up AI-generated code by removing emojis while keeping your formatting perfect.
Why Use Nexmoji VS Code Extension?
- AI-Generated Code Cleanup: Perfect for cleaning up code from ChatGPT, GitHub Copilot, and other AI tools
- Professional Standards: Remove emojis to meet corporate coding standards and documentation requirements
- Preserves Formatting: Maintains code structure, indentation, and comments while removing emojis
- Context Awareness: Intelligently determines file type and applies appropriate removal strategies
- Real-time Detection: Live emoji highlighting and detection as you type
- Workspace Integration: Process entire workspaces with comprehensive analysis
- Safe & Reliable: Preview changes before applying them with dry-run functionality
Quick Start
Install Extension
- Open VS Code Extensions (Ctrl+Shift+X)
- Search for "Nexmoji"
- Click Install
Basic Usage
# Remove emojis from selection
Ctrl+Shift+E
# Quick fix current line
Ctrl+Shift+Q
# Smart clean entire file
Ctrl+Shift+S
Main Commands
Basic Processing
# Remove emojis from selection
Nexmoji: Remove Emojis from Selection
# Remove emojis from current file
Nexmoji: Remove Emojis from Current File
# Remove emojis from entire workspace
Nexmoji: Remove Emojis from Workspace
# Preview changes first (dry-run)
Nexmoji: Show Emoji Statistics
Context-Specific Commands (Recommended)
# Smart clean with context awareness
Nexmoji: Smart Clean: Context-aware Emoji Removal
# Show context analysis
Nexmoji: Show Context Analysis
# Scan workspace for emojis
Nexmoji: Scan Workspace for Emojis
# Highlight emojis in document
Nexmoji: Highlight Emojis in Document
Real-time Features
# Toggle real-time emoji detection
Nexmoji: Toggle Real-time Emoji Detection
# Quick fix current line
Nexmoji: Quick Fix: Remove Emojis
# Show detailed statistics
Nexmoji: Show Emoji Statistics
Utility Commands
# Show supported file types
Nexmoji: Show Context Analysis
# Show detailed context information
Nexmoji: Scan Workspace for Emojis
# Check emoji statistics
Nexmoji: Show Emoji Statistics
# Get help
Nexmoji: Show Context Analysis
Keyboard Shortcuts
Primary Shortcuts
Ctrl+Shift+E
: Remove emojis from selection
Ctrl+Shift+Q
: Quick fix (remove emojis from current line)
Ctrl+Shift+S
: Smart clean (context-aware removal)
Right-click in editor for quick access to:
- Remove Emojis from Selection
- Quick Fix: Remove Emojis
What It Does
Nexmoji removes emojis from your code while keeping the formatting intact:
Before:
function testFunction() {
// This comment has an emoji: rocket
const message = "Hello world! sparkles";
if (message.includes("sparkles")) {
console.log("Found emoji! star");
}
}
After:
function testFunction() {
// This comment has an emoji:
const message = "Hello world! ";
if (message.includes("")) {
console.log("Found emoji! ");
}
}
Context Awareness
The extension intelligently determines file context and applies appropriate emoji removal strategies:
Production Code
- Files:
.js
, .ts
, .jsx
, .tsx
, .py
, .java
, .cpp
, .c
, .php
, .rb
, .go
, .rs
- Strategy: Remove all emojis
- Directories:
src/
, lib/
, dist/
, build/
, app/
, components/
, utils/
Documentation
- Files:
.md
, .txt
, .rst
, .adoc
- Strategy: Preserve emojis (user-facing content)
- Directories:
docs/
, readme/
Configuration
- Files:
.json
, .yaml
, .yml
, .toml
, .ini
, .cfg
, .conf
- Strategy: Remove emojis but preserve structure
- Directories:
config/
User-Facing Content
- Files:
.html
, .css
, .scss
, .sass
- Strategy: Preserve emojis (UI/UX content)
- Directories:
public/
, static/
, assets/
, content/
, pages/
Supported File Types
- Code:
.js
, .ts
, .jsx
, .tsx
, .py
, .java
, .cpp
, .c
, .php
, .rb
, .go
, .rs
- Web:
.html
, .css
, .scss
, .xml
- Data:
.json
, .yml
, .yaml
- Documentation:
.md
, .txt
- Configuration:
.ini
, .cfg
, .conf
Installation
Prerequisites
- VS Code 1.60.0 or higher
- Node.js 16+ (for development)
Install from VSIX Package
- Download the
nexmoji-1.0.0.vsix
file
- In VS Code, go to Extensions (Ctrl+Shift+X)
- Click the "..." menu and select "Install from VSIX..."
- Choose the downloaded file and install
Install from Marketplace (Coming Soon)
- Open VS Code Extensions (Ctrl+Shift+X)
- Search for "Nexmoji"
- Click Install
Examples
Process a React Component
# Open the file in VS Code
# Use Ctrl+Shift+S for smart clean
# Or use Command Palette: "Nexmoji: Remove Emojis from Current File"
Clean Up an Entire Project
# Use Command Palette: "Nexmoji: Remove Emojis from Workspace"
# Or use "Nexmoji: Scan Workspace for Emojis" first to preview
Process with Context
# Smart clean with context awareness
Nexmoji: Smart Clean: Context-aware Emoji Removal
# Show context analysis first
Nexmoji: Show Context Analysis
Analyze Emoji Usage
# Show statistics for current file
Nexmoji: Show Emoji Statistics
# Scan entire workspace
Nexmoji: Scan Workspace for Emojis
Real-time Detection
Enable real-time emoji detection to see emojis highlighted as you type:
- Open Command Palette (Ctrl+Shift+P)
- Run "Nexmoji: Toggle Real-time Emoji Detection"
- Emojis will be highlighted with orange borders
- Toggle off when done
Workspace Scanning
Get comprehensive analysis of your entire workspace:
- Open Command Palette (Ctrl+Shift+P)
- Run "Nexmoji: Scan Workspace for Emojis"
- View results showing:
- Total files scanned
- Files with emojis
- Total emojis found
- Top files with emojis
Best Practices
- Always preview changes first using "Show Emoji Statistics"
- Use context-aware processing with "Smart Clean" for best results
- Test on a small subset before processing entire workspaces
- Use version control to track and revert changes if needed
- Enable real-time detection for live feedback during development
Troubleshooting
Common Issues
Extension not working:
- Check if VS Code version 1.60.0 or higher is installed
- Verify extension is activated in the workspace
- Try reloading VS Code window (Ctrl+Shift+P > "Developer: Reload Window")
Commands not appearing:
- Check Command Palette (Ctrl+Shift+P)
- Verify extension is installed and enabled
- Restart VS Code if needed
Performance issues:
- Disable real-time detection for large files
- Use workspace scanning for batch operations
- Check file size limits
Debug Mode
- Open Developer Tools (Help > Toggle Developer Tools)
- Check Console for extension logs
- Look for "Nexmoji extension is now active!" message
Debug Commands
# Enable verbose output in Developer Tools
# Check extension activation logs
# Verify command registration
- Optimized Detection: Single regex pattern for fast emoji detection
- Batch Processing: Efficient workspace scanning with caching
- Memory Management: Automatic cleanup and resource management
- Debounced Updates: Real-time detection with 500ms debouncing
- Caching: 5-minute cache for workspace scan results
Configuration
The extension automatically detects file context, but you can customize behavior:
File Type Detection
- Based on file extension
- Directory structure analysis
- Content keyword matching
- Confidence scoring
Preservation Rules
- Production Code: Remove all emojis
- Documentation: Preserve emojis
- Configuration: Remove emojis, preserve structure
- User-Facing: Preserve emojis
Development
Building from Source
git clone https://github.com/nexmoji/nexmoji-vscode
cd nexmoji-vscode
npm install
npm run compile
npm run package
Testing
npm test
Publishing
npm run publish
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
)
- Commit your changes (
git commit -m 'Add amazing feature'
)
- Push to the branch (
git push origin feature/amazing-feature
)
- Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Nexmoji VS Code Extension - Clean, professional code without emojis.