A simple and efficient tool to clean up comments from your codebase recursively.
- Supports multiple languages: C-styled languages (C/C++/Java/Rust/C#), Python, Haskell, and Markup (HTML/XML).
- Recursively traverses directories to process all applicable files.
- Safely removes both single-line and multi-line/block comments.
To use this tool, run the executable with the directory path as the argument:
RemoveCommentary <path_to_directory>
For example:
RemoveCommentary ./src
This will process all files in the ./src
directory, removing comments based on the file extensions.
Note: Please backup your codebase in advance in case of unexpected damages.
- Rust Programming Language
walkdir
andderive_more
crates
Compile the program with Rust's package manager, Cargo:
cargo build --release
The resulting executable will be in target/release
.
Contributions are welcome! Feel free to open an issue or submit a pull request.