how to remove comments from the code #6169
Answered
by
schalkms
heyuxiang1996
asked this question in
Q&A
-
if I have a kt file,I want to print out all the code in this kotlin file (remove comments), what should I do? |
Beta Was this translation helpful? Give feedback.
Answered by
schalkms
Jun 1, 2023
Replies: 1 comment
-
I guess it's better to use text manipulation (e.g. regex) and command line tools (e.g. pipes and filters) for this task. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
schalkms
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess it's better to use text manipulation (e.g. regex) and command line tools (e.g. pipes and filters) for this task.
If you want, you can also use IntelliJs structural search and replace dialogs.
Taken all together, I don't think you should detekt for this task, even though it's technically possible to filter out comments.