🎨 Console Highlighter
A VS Code extension that highlights console statements in your code with colors, shows them in the Problems panel, and lets you pick exactly which methods to track.
Supported Languages
| Language |
File Extensions |
| TypeScript |
.ts |
| TypeScript React (TSX) |
.tsx |
JavaScript and JSX files are not scanned to avoid noise from third-party libraries and bundled files.
Features
🌈 Color-coded Highlights
Each console method gets its own color directly in the editor:
| Method |
Color |
Icon |
console.log |
🟡 Yellow |
📋 |
console.warn |
🟠 Orange |
⚠️ |
console.error |
🔴 Red |
🔴 |
console.info |
🔵 Blue |
ℹ️ |
console.debug |
🟣 Purple |
🐛 |
console.trace |
🟢 Green |
🔍 |
console.table |
🩵 Teal |
📊 |
🔍 Problems Panel
Every detected statement appears in the Problems panel (Ctrl+Shift+M) with severity levels:
console.error → ❌ Error
console.warn → ⚠️ Warning
- everything else → ℹ️ Information
Click any entry in the Problems panel to jump directly to that line.
🎛️ Pick Which Methods to Highlight
Choose exactly which methods you want to track using a checklist — no need to edit settings.json manually. Your selection is saved and shared across the project so teammates get the same setup automatically.
🔎 Workspace Scan
Scan your entire project at once and see all console statements across every .ts / .tsx file in the Problems panel. The scan only looks for the methods you have selected.
Colored marks appear in the overview ruler (right-side scrollbar) so you can spot console statements even when scrolled far away from them.
🚫 Smart Exclusions
The following folders are automatically skipped during workspace scans so you never see noise from generated or third-party files:
| Excluded |
Reason |
node_modules/ |
Third-party packages |
dist/ build/ out/ |
Compiled output |
.angular/ |
Angular build cache |
vite/deps/ .vite/ |
Vite pre-bundled dependencies |
.next/ |
Next.js cache |
coverage/ |
Test coverage output |
.cache/ vendor/ |
Generic cache and vendor folders |
*.min.js *.bundle.js *.chunk.js |
Minified / bundled files |
Commands
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type:
| Command |
Description |
Console Highlighter: Toggle Highlighting |
Turn highlighting on or off |
Console Highlighter: Select Methods |
Pick which console methods to highlight |
Console Highlighter: Scan Workspace |
Find consoles across all .ts / .tsx files |
Console Highlighter: Remove from File |
Delete console statements in the current file |
Console Highlighter: Remove from Workspace |
Delete console statements across the entire project |
How to Select Methods
- Press
Ctrl+Shift+P → Console Highlighter: Select Methods
- A checklist appears with all available methods
- Use Space to check / uncheck each one
- Press Enter to confirm
Only the methods you selected will be highlighted and shown in the Problems panel. Your selection is saved to both your personal settings and the project's .vscode/settings.json so everyone on the team uses the same configuration.
Default: console.log only — on a fresh install the extension will never scan all methods unexpectedly.
Settings
You can also configure manually in settings.json:
// Enable or disable the extension
"consoleHighlighter.enabled": true,
// Methods to highlight — only these will be scanned and highlighted
"consoleHighlighter.methods": ["log", "warn", "error"]
To open your settings file: Ctrl+Shift+P → Open User Settings (JSON)
For project-level settings (shared with teammates): Ctrl+Shift+P → Open Workspace Settings (JSON)
Installation
From VSIX (recommended for sharing)
- Open VS Code
Ctrl+Shift+P → Extensions: Install from VSIX
- Select the
.vsix file
- Reload VS Code when prompted
- Open any
.ts or .tsx file — highlighting starts automatically
Development Mode
- Clone or download this project
- Open the folder in VS Code
- Press F5 to launch the Extension Development Host
- Open any
.ts or .tsx file — highlighting starts automatically
Project Structure
console-highlighter/
├── package.json — extension manifest & configuration
├── readme.md — this file
├── images/
│ └── icon.png — extension icon
└── src/
└── extension.js — all extension logic