The Remove Console Logs extension automatically removes console.log statements from JavaScript and Vue files. Additionally, it replaces console.log with console.error inside catch blocks to maintain error reporting.
Features
Removes all console.log statements from JavaScript and Vue files.
Converts console.log to console.error inside catch blocks.
Works across all files in your workspace with a single command.
Installation
Open VS Code.
Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on Mac).
Search for Remove Console Logs.
Click Install.
Reload or restart VS Code if needed.
Usage
Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
Search for Remove Console Logs From All Files.
Select the command and let the extension do its job!