CodeLog+
A VS Code extension to streamline debugging by inserting and managing formatted log statements across multiple languages.
Overview
CodeLog+ accelerates debugging by providing:
- Instant insertion of formatted log statements for JavaScript, Python, Java, C#, PHP, Dart, Go, C++, Ruby, and more
- Customizable templates, prefixes, delimiters, and accessibility-friendly modes
- Bulk operations: edit, comment/uncomment, remove, and highlight logs
- Workspace-wide Tree View for navigating all log statements
- Progress indicators and performance optimizations for large codebases

Table of Contents
Features
- Multi-language support - Works with JavaScript, TypeScript, Java, C#, PHP, Dart, Python, C++, Ruby, Go, Kotlin, Swift, Scala, Lua, Perl, Elixir, Haskell, and more.
- Customizable log templates - Define your own log message format.
- Automatic file & line detection - Inserts file name and line number dynamically.
- Quick insert with shortcuts - Add log statements with minimal effort.
- Intelligent variable logging - Automatically logs variable names and values.
- Flexible configuration options - Tailor the behavior to your needs.
- Accessibility features - Option to replace emoji prefixes with text alternatives for better screen reader compatibility.
- Progress indicators - Visual feedback during long-running operations on large files.
- Tree view navigation - Easily find and jump to log statements in your workspace.
- Performance optimized - Efficiently handles large codebases with minimal impact on VSCode's responsiveness.
- Multi-root workspace support - Works seamlessly across all folders in multi-root workspaces.
Installation
- Open Visual Studio Code (or a compatible editor).
- Go to Extensions (Ctrl+Shift+X / ⌘+Shift+X).
- Search for CodeLog+ or install directly from the Marketplace.
- Click Install and reload the editor.
Usage
Insert a Log Statement
- Place your cursor on a variable or function.
- Use the shortcut:
- Windows/Linux:
Ctrl+Alt+L
- Mac:
⌘+Alt+L
- A formatted log statement will be inserted automatically.
JavaScript Log Output Example
console.log("🔍 ~ myFile.js:25 ~ userName:", userName)
Python Log Output Example
print(f"🔍 ~ myFile.py:25 ~ userName: {userName}")
File-Scope Log Management
Bulk-operate on every log statement in the currently active file, no manual searching, no regex gymnastics. Simply open the Command Palette (Ctrl+Shift+P / ⌘+Shift+P), type CodeLog+, and choose your action. Log operations can now target the current selection, current function, or entire file.
Note: Log operations now prioritize the active editor selection when text is selected. If no selection exists, all logs in the file are processed as usual.
Edit Logs
Purpose: Standardize or change log methods in one sweep.
- What it does:
- Converts between methods (e.g.
console.log → console.error → console.warn)
- Inserts/removes custom prefixes or timestamps
- Wraps messages in your team's agreed format
- How to run:
- Windows/Linux:
Ctrl+Alt+A
- macOS:
⌘+Alt+A
- Animated Demo:

Comment & Uncomment Logs
Purpose: Temporarily mute or restore debug output without deleting code.
- Comment Logs:
- Windows/Linux:
Ctrl+Alt+,
- macOS:
⌘+Alt+,
- Wraps each
log line in a comment (e.g. // console.log(...))
- Uncomment Logs:
- Windows/Linux:
Ctrl+Alt+Shift+,
- macOS:
⌘+Alt+Shift+,
- Reverts commented logs back to active statements
- When to use: Toggle debug noise during iterative testing or peer review.
- Animated Demo:

Remove Logs
Purpose: Clean slate, strip out all log statements before merging or shipping.
- Shortcut:
- Windows/Linux:
Ctrl+Alt+Shift+L
- macOS:
⌘+Alt+Shift+L
- Behavior:
- Deletes any line containing a recognized log command
- Preserves surrounding code structure and formatting
- Animated Demo:

Highlight & Clear Highlights
Purpose: Visually surface every log statement for quick scanning, then clear highlights to restore your normal color scheme.
- Highlight Logs:
- Windows/Linux:
Ctrl+Alt+K
- macOS:
⌘+Alt+K
- Applies a customizable decoration (e.g. wavy underline, background color) to each
log line
- Clear Highlights:
- Windows/Linux:
Ctrl+Alt+Shift+K
- macOS:
⌘+Alt+Shift+K
- Removes all decorations, returning to default syntax highlighting
- Animated Demo:

Workspace-Wide Log Navigator
Navigate every debug statement across your entire workspace with a single sidebar panel:
- Hierarchical Explorer
- Logs are grouped by file
- Collapsible nodes let you drill down to specific files
- Language-aware scan
- Each file is scanned with its own language rules so mixed-language workspaces stay accurate
- Instant Jump-To-Code
- Click any entry to open the file and position your cursor exactly at the log statement

Accessibility Features
CodeLog+ supports improved accessibility with the useAccessibleLogs setting:
"codeLogPlus.useAccessibleLogs": true
When enabled, emoji prefixes in log statements are replaced with text alternatives:
| Emoji |
Text Alternative |
| 🔍 |
[DEBUG] |
| ℹ️ |
[INFO] |
| ⚠️ |
[WARNING] |
| ❌ |
[ERROR] |
This improves compatibility with screen readers and provides clearer information in environments where emojis may not render correctly.
Example with accessibility enabled:
Standard log: console.log("🔍 ~ file.js:25 ~ functionName: variable")
Accessible log: console.log("[DEBUG] ~ file.js:25 ~ functionName: variable")
Progress Indicators
When working with large files, long-running operations like finding, editing, or removing logs can take time. CodeLog+ now provides visual progress indicators during these operations:
- Finding logs shows a "Searching for log statements..." notification
- Removing logs displays a "Removing selected logs..." notification
- Editing logs shows an "Updating log statements..." notification
- Commenting/uncommenting logs displays appropriate progress notifications
These indicators help you understand when operations are in progress and when they complete, especially in large codebases.
Configuration Options
CodeLog+ provides various configuration options to customize logging behavior in VSCode. You can modify these settings in the VSCode settings.json file.
General Settings
| Setting |
Type |
Default |
Description |