A powerful VS Code extension that enables users to highlight up to eight distinct words or patterns in any text file using carefully chosen muted background colors. Perfect for analyzing log files, code reviews, and data analysis.
| Light | Dark |
|---|---|
![]() |
![]() |
- π¨ Eight Color Highlighting: Highlight up to 8 different patterns with distinct muted background colors
- π Theme Aware: Automatically adapts colors for light and dark VS Code themes
- π Explorer Integration: Dedicated panel in VS Code Explorer for easy pattern management
- β‘ Real-time Updates: Instant highlighting as you add/modify patterns
- π Flexible Matching: Case-sensitive and whole-word matching options
- π Statistics View: Interactive panel showing pattern usage and statistics
- β¨οΈ Keyboard Shortcuts: Quick access to common operations
- βΏ Accessibility: Full screen reader support and keyboard navigation
- π Import/Export: Save and share pattern configurations
- π― Smart Navigation: Jump between pattern occurrences with intelligent cursor detection
- Open the Pattern Panel: Look for the "Pattern Colorization" panel in the VS Code Explorer sidebar (activity bar icon: π¨)
- Add Your First Pattern: Click the "+" button in the panel or select text in your editor and right-click β "Add to Pattern Colorization"
- Choose a Color: Select from 8 carefully chosen muted colors that work with both light and dark themes
- Watch the Magic: Your pattern is immediately highlighted across all open files!
- From Panel: Click the "+" button in the Pattern Colorization panel for inline editing
- From Selection: Select text in the editor, right-click, and choose "Add to Pattern Colorization"
- Command Palette: Use
Ctrl+Shift+Pβ "Pattern Colorization: Add Pattern" - Smart Detection: Extension automatically detects if you're on a word and offers to use it as a pattern
- Inline Editing: Click on any pattern in the panel to edit its text directly
- Color Changes: Right-click any pattern β "Change Pattern Color" to pick a different color
- Descriptions: Add optional descriptions when creating patterns for better organization
- Toggle Individual: Click the eye icon next to any pattern to enable/disable it
- Toggle All: Use the eye icon in the panel header to enable/disable all highlighting
- Delete: Right-click any pattern β "Delete Pattern" or use the trash icon
- Clear All: Use "Clear All Patterns" to remove everything at once (with export option)
F3(Win/Linux) /Cmd+G(Mac) - Jump to next occurrence of any patternShift+F3(Win/Linux) /Cmd+Shift+G(Mac) - Jump to previous occurrence of any pattern
The extension includes intelligent navigation that detects which pattern is under your cursor:
- Pattern-Specific Navigation: When your cursor is on a highlighted pattern, navigation commands will only jump between occurrences of that specific pattern
- Fallback Behavior: If no pattern is detected at the cursor, the extension uses the first available pattern
- Visual Feedback: Shows current position (e.g., "Pattern 'error': 3/7") in the status bar
Add these commands in VS Code's Keyboard Shortcuts settings (Cmd+K Cmd+S):
Jump to next occurrence of selected pattern:
- Command:
patternColorization.jumpToNextSelectedPattern - Suggested shortcut:
Ctrl+Shift+F3(Win/Linux) /Cmd+Option+G(Mac)
Jump to previous occurrence of selected pattern:
- Command:
patternColorization.jumpToPreviousSelectedPattern - Suggested shortcut:
Ctrl+Shift+F2(Win/Linux) /Cmd+Option+Shift+G(Mac)
To add these shortcuts:
- Open VS Code Keyboard Shortcuts (
Cmd+K Cmd+S) - Click the "+" icon to add a new keybinding
- Enter the command name and desired key combination
The extension provides 8 carefully chosen muted colors that work well with both light and dark themes:
- Soft Blue - Perfect for keywords and important terms
- Soft Green - Great for success messages and positive indicators
- Soft Yellow - Suitable for notes and annotations
- Soft Orange - Ideal for warnings and attention-grabbing content
- Soft Purple - Excellent for categorization and grouping
- Soft Pink - Nice for highlighting names and identifiers
- Soft Teal - Good for URLs and links
- Soft Gray - Perfect for errors and critical information
- From Panel: Click the export icon (π€) in the Pattern Colorization panel
- Command Palette: Use
Ctrl+Shift+Pβ "Pattern Colorization: Export Patterns" - Format: Exports to JSON format for easy sharing and backup
- From Panel: Click the import icon (π₯) in the Pattern Colorization panel
- Command Palette: Use
Ctrl+Shift+Pβ "Pattern Colorization: Import Patterns" - Format: Imports from JSON files created by the export function
- Smart Merge: New patterns are added to existing ones without conflicts
- From Panel: Click the statistics icon (π) in the Pattern Colorization panel
- Command Palette: Use
Ctrl+Shift+Pβ "Pattern Colorization: Show Statistics" - Interactive Dashboard: Opens a webview with comprehensive pattern analytics
- Total Patterns: Number of patterns created
- Active Patterns: Currently enabled patterns
- Active Highlights: Number of text matches found across all files
- Global Status: Whether highlighting is enabled/disabled
- Pattern Details: Individual pattern status and color information
- Configuration: Current settings (case sensitivity, whole word matching)
Access extension settings through VS Code preferences (Ctrl+,) and search for "Pattern Colorization":
- Case Sensitive Matching: Enable/disable case-sensitive pattern matching
- Whole Word Matching: Only match complete words (not partial matches)
- Global Highlighting: Enable/disable all pattern highlighting
All commands are available through the Command Palette (Ctrl+Shift+P):
Pattern Colorization: Add Pattern- Add a new pattern to highlightPattern Colorization: Add from Selection- Add selected text as patternPattern Colorization: Clear All Patterns- Remove all patternsPattern Colorization: Toggle Highlighting- Enable/disable all highlightingPattern Colorization: Refresh Patterns- Refresh pattern decorations
Pattern Colorization: Jump to Next Highlight- Navigate to next occurrence of any patternPattern Colorization: Jump to Previous Highlight- Navigate to previous occurrence of any patternPattern Colorization: Jump to Next Selected Pattern Occurrence- Navigate only between occurrences of the pattern under cursorPattern Colorization: Jump to Previous Selected Pattern Occurrence- Navigate only between occurrences of the pattern under cursor
Pattern Colorization: Export Patterns- Export patterns to JSON filePattern Colorization: Import Patterns- Import patterns from JSON filePattern Colorization: Show Statistics- Open interactive statistics dashboard
- Use different colors for different log levels (ERROR, WARN, INFO, DEBUG)
- Highlight IP addresses, user IDs, or transaction IDs with distinct colors
- Use warm colors (orange, gray) for errors and cool colors (blue, green) for normal operations
- Highlight TODO comments in yellow
- Use gray for FIXME or bug-related comments
- Highlight function names or class names in blue
- Use green for recently added code markers
- Patterns are matched efficiently, but avoid overly broad patterns in very large files
- Use whole-word matching when possible to improve performance
- Disable patterns you're not actively using instead of deleting them
- Export your patterns before clearing them for easy restoration
- Check that the extension is enabled (look for the eye icon in the panel)
- Verify the pattern text matches exactly (check case sensitivity settings)
- Try refreshing patterns using the refresh button in the panel
- Reduce the number of active patterns if experiencing slowdowns
- Use more specific patterns instead of very broad ones
- Consider disabling the extension for very large files (>10MB)
- Try reloading VS Code window (
Ctrl+Shift+Pβ "Developer: Reload Window") - Check VS Code's Developer Console (
Help > Developer Tools) for errors - Verify the extension is properly installed in the Extensions panel
Enjoy enhanced text analysis with Pattern Colorization! π¨

