Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Console SanitizerNew to Visual Studio Code? Get it now.
Console Sanitizer

Console Sanitizer

devflow-tools

|
5 installs
| (0) | Free
Automatically detect, highlight, and remove console log statements from your code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Console Sanitizer 🧼

Visual Studio Marketplace Version Installs License

Keep your codebase clean and production-ready. Console Sanitizer is a powerful VS Code extension that automatically detects, highlights, and provides one-click removal of console log statements from your JavaScript and TypeScript projects.


🚀 Why Console Sanitizer?

Leaving console.log statements in production code is a common mistake that can lead to:

  • 🐞 Performance overhead in high-frequency loops.
  • 🔓 Security risks by leaking sensitive data or internal application state.
  • 📉 Poluting the browser console and degrading the user experience.

Console Sanitizer helps you catch these before they even reach your commits.


✨ Key Features

🔴 Real-Time Highlighting

Never miss a log again. The extension scans your active editor and highlights console.log, warn, error, and debug statements with a distinct visual marker.

⚠️ Instant Notifications

Every time you open or save a file, Console Sanitizer summarizes the number of detected logs, keeping you aware of your code's "cleanliness."

🗑️ One-Click Sanitation

Clean your code instantly with two simple commands:

  • Remove Logs (Current File): Zap all logs from the active tab.
  • Remove Logs (Entire Project): Sanity check your entire workspace in one go.

🛠️ How to Use

  1. Open a JavaScript/TypeScript file.
  2. Observe the highlights where console logs exist.
  3. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
  4. Type Console Sanitizer and choose your desired cleanup action.

📦 Supported Languages

  • JavaScript (.js) & JSX (.jsx)
  • TypeScript (.ts) & TSX (.tsx)
  • React, Vue, Svelte, and more (standard JS/TS syntax)

⚙️ Configuration

No configuration required! It works out of the box.


📄 License

This extension is licensed under the MIT License.


Built with ❤️ for developers by DevFlow Tools.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft