This CLI tool removes comments from C#, F#, C++, Java, JavaScript, OCaml, Haskell, and Python source code.
![demo](https://private-user-images.githubusercontent.com/6882458/336070996-5d5bfaf8-fa15-4a17-9101-14020cc6240c.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzNzM1ODAsIm5iZiI6MTcyMDM3MzI4MCwicGF0aCI6Ii82ODgyNDU4LzMzNjA3MDk5Ni01ZDViZmFmOC1mYTE1LTRhMTctOTEwMS0xNDAyMGNjNjI0MGMuZ2lmP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDdUMTcyODAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTI2MDllNzc4ZTYxN2NiNmY5YWIwYmZkYzQxMDkzNjEyNWJhOTMwYjBhZjFhMzA5YmZjYjA0YTJiYmFjYzNjYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.2WIfBDevBz71k-UevFeFo8OXYHMJpvx5qYPhKand_uM)
Remove all comments.
% Decomment Foo.cs
- Remove all comments except for documentation comments.
- Replace all comments with indented empty lines.
Remove all comments except for document comments.
% Decomment -d Foo.cs
Replace all comments with indented empty lines.
% Decomment -e Foo.cs
Show help.
% Decomment -h
Usage: Decomment [-d] [-e] <path>
-d : remove comments except for document comments
-e : replace comments with indented empty lines
<path> : path to a source code file
(*.cs, *.fs, *.java *.cpp, *js, *.ml, *.hs, *.py)"