Automatically removes print and log statements from your code in multiple programming languages, helping you clean up before committing or sharing your code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
PrintPurge is a Visual Studio Code extension that helps developers by automatically removing all print/debug statements in their code. The extension supports multiple programming languages including JavaScript, Python, Java, C++, and many more.
Features
Removes console.log from JavaScript files
Eliminates print statements from Python scripts
Cleans up System.out.println in Java code
Supports multiple programming languages
Simple and lightweight
Installation
Open VS Code
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window
Search for "PrintPurge" and install it
Usage
Open a file you want to clean up
Press Ctrl+Shift+P to open the command palette
Type "Remove Print Statements" and hit enter
Supported Languages
JavaScript/TypeScript
Python
Java
C/C++
C#
Ruby
PHP
Rust
Roadmap
[ ] Add support for more programming languages
[ ] Implement customization options
Contributing
If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.