Delete all comment lines in Sublime Text 3
To delete all specific <tag> element including contents inside it:
- Ctrl + H (on PC)
- Enable (Regular Expression): .* icon or Alt + R
- Find What:
RE syntax to work with a particular tag,
(?s)<start tag>.*?<end tag>
Such as, for CSS comment tags,
(?s)/*.*?*/
For HTML comment tags,
(?s)<!--.*?-->
- Replace With: Leave the field blank
- Replace All