If you do not want to comment on the code that you are exporting, IntelliJ should not export your comments. However, if you want to really delete comments in the whole project, you can delete comments /* x */ using REGEX. For // comments, you can also use REGEX, but do not do this so as not to delete all the code.
For /* x */
\/\*([\s\S]*?\*\/)
For //
\/\/.*
source share