Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Console.log ManagerNew to Visual Studio Code? Get it now.
Console.log Manager

Console.log Manager

hp186

|
3 installs
| (0) | Free
Pick and delete all console.log statements in your project via the Command Palette.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Console .log Manager — VS Code Extension

Tired of pushing console.log() statements to production or spending minutes hunting them down file‑by‑file?
Console .log Manager gives you a single, searchable dashboard for every console.log in your workspace—and lets you delete dozens at once with one click.


✨ Features

🔍 Workspace‑wide scan Finds every console.log(...) in .js, .ts, .jsx, and .tsx files—multiline calls included.
🗂 Alphabetical file groups Logs are grouped by file (sorted A → Z) and by line number.
✅ Bulk selection • Shift‑click to select a range
• Select all / Deselect all toggle per file
✂️ One‑click removal Removes the entire line(s) of every selected statement (whitespace & newline too).
💾 No‑tab edits Files are patched via the VS Code file‑system API—no editors pop open.
🔄 Live refresh The panel updates automatically after deletes and whenever you save a file.
⚡ Fast & safe Uses a tiny hand‑rolled parser to balance parentheses, so nested calls and template strings are handled correctly.

🚀 Quick start

  1. Install from the VS Code Marketplace (Console.log Manager) or via vsix.
  2. Open the Command Palette ⇧⌘P / Ctrl + Shift + P → Console.log Manager: Select and Delete Logs.
  3. Select the statements you want to drop:
    • Tick individual checkboxes or
    • Click Select all next to a file (toggles to Deselect all when everything is checked).
  4. Click Delete Selected.
    The panel shows a quick spinner while the extension rewrites the affected files and then refreshes.

Tip: Hold Shift when clicking a checkbox to select a range.


⚙️ Extension settings

Setting Description Default
consoleLogManager.includeGlobs Additional glob patterns to include (comma‑separated). —
consoleLogManager.excludeGlobs Glob patterns to ignore (besides **/node_modules/**). —

Add them under Settings → Extensions → Console.log Manager or in settings.json.


❗ Known limitations

  • Only scans JavaScript/TypeScript files (*.js, *.ts, *.jsx, *.tsx) right now.
  • Log helpers like console.error or custom wrappers aren’t matched—yet.
    Feel free to open a PR!

🛠 Contributing

  1. Fork the repo and create your feature branch: git checkout -b my‑feature.
  2. Run the extension in the VS Code Extension Development Host (F5).
  3. Commit your changes, push, and open a pull request.
    Please include a short demo GIF for UI tweaks.

📄 License

MIT © 2025

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