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

Console Log Checker

madprops

|
932 installs
| (0) | Free
Counts or removes any console.logs inside the current document
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

This allows counting how many lines contain "console.log" in the current document. It also allows removing those lines. If a line matches "console.log" it will remove that line entirely even if there are other things in it. This is done via the commands "Count Console Logs" and "Remove Console Logs". Each command will show output of how many were found or removed. When counting console logs, if some were found the message box will offer to remove them through a button. This won't work correctly with console.log declarations that span through multiple lines. There's also a "Go" button that appears when counting the console logs, when clicked the cursor moves to the first console.log found. Regex used to find them on each line is /(^|\s)console.log\s*(/, "g".

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