DeLogify is a lightweight and effective VS Code extension that automatically removes all console.log() statements from your JavaScript and TypeScript files with just one command.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
DeLogify is a lightweight and effective VS Code extension that automatically removes all console.log() statements from your JavaScript and TypeScript files with just one command.
🚀 What Does DeLogify Do?
Removes allconsole.log() statements from your code with a single command.
Works with .js, .ts, .jsx, and .tsx files.
Triggered via the Command Palette: “Remove Console Logs”.
Zero dependencies, lightning-fast.
🛠️ How It Works
Run the command Remove Console Logs from the Command Palette.
DeLogify reads the active file's content.
It removes all lines matching the regex:
/^\s*console\.log\(.*?\);?\s*$/
Writes the cleaned content back to the file.
Shows a confirmation message:
✅ All console.log statements removed!