Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Comment Console LogNew to Visual Studio Code? Get it now.
Comment Console Log

Comment Console Log

Salman Asu

|
42 installs
| (1) | Free
Comments out all console.log statements in the project
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Comment Console Logs - VS Code Extension

Version Installs Rating

Overview

Comment Console Logs is a Visual Studio Code extension that helps developers quickly comment out all console.log statements in their project. This can be useful for debugging purposes, cleanup before pushing code to production, or simply reducing clutter in your codebase.

Features

  • Automatically comment out all console.log statements in your project.
  • Preserves leading whitespace and indentation.
  • Skips console.log statements that are already commented.
  • Works with both JavaScript (.js) and TypeScript (.ts) files.

Example:

Before running the extension:

console.log("This is a log message");
const a = 10; console.log("Another log message");

After running the extension:

//console.log("This is a log message");
const a = 10; //console.log("Another log message");
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft