website/client/src/en/guide/comment-removal.md
Repomix can automatically remove comments from your codebase when generating the output file. This can help reduce noise and focus on the actual code.
To enable comment removal, set the removeComments option to true in your repomix.config.json:
{
"output": {
"removeComments": true
}
}
Repomix supports comment removal for a wide range of programming languages, including:
//, /* */)#, """, ''')//, /* */)//, /* */)<!-- -->)/* */)Given the following JavaScript code:
// This is a single-line comment
function test() {
/* This is a
multi-line comment */
return true;
}
With comment removal enabled, the output will be:
function test() {
return true;
}
output.removeComments in your config file--remove-comments flag