Today we will talk about comments. They are very important during development process but often after finishing project and switching into production mode we donâ€™t need them. Anyway, if you donâ€™t want to see comments in your code anymore here is quick solution.
To delete allÂ comments inside file just open in any IDE or advanced text editor which support â€œFind and Replaceâ€ function with regex.
For example, Iâ€™m using Jetbrain's IntelliJ IDEAÂ and here Â is how to do it:
- Open Edit->Find->Replace
- Check Regex option
- Then find following expression inside file. It will select absolutely all kinds of comments
- Replace it with "" (empty string)
Now you have clean code, without comments!