Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JanitorNew to Visual Studio Code? Get it now.
Janitor

Janitor

Azuki

|
16 installs
| (0) | Free
Debugging using logs, not a problem anymore
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Janitor README

Just follow this format console.log("test:");, Janitor will remove all single line and multiline logs.

Usage

  • Cltr/Cmd + Shift + P
  • Then type console.log you will get both the options

Note: Both .js/.ts files are supported, make sure your logs end with semicolon

Tip: Have prettier extension and this setting in your user settings

Steps

  • Cltr/Cmd + Shift + P
  • Type settings.json and select user settings.json file
  • Add these lines on user settings(adds semicolon automatically on save)
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true

Features

You can do these two things

  1. Remove console.log formatted statements from current file
  2. Remove console.log formatted statements throughout the project

Requirements

Follow the format, and having prettier run as default formatter will be helpful in not missing the semicolon

Extension Settings

This extension contributes the following settings:

  • janitor.removeLogsCurrentFile: Removes logs from the current file
  • janitor.removeLogsProject: Remove logs throughout the current project

Known Issues

None detected so far

Release Notes

1.0.2

Better UX for log removal

1.0.1

Better logo

1.0.0

Initial release of Janitor


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