This CLI tool removes comments from C#, F#, C++, Java, JavaScript, OCaml, Haskell, and Python source code.
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)"