vscode-remove-comments
vscode-remove-comments copied to clipboard
Feature Request: Remove Comments in HTML
For Example:
From:
<div>
<!-- This is a comment -->
This is real content.
</div>
To:
From:
<div>
This is real content.
</div>
I second this. Much needed.
I know this is a really old request, but for anyone stumbling upon this in the future.
Go into Search mode.
Type <!--(.*?)-->. Enable the REGEX search function. (third button next to the search input box).
Select the arrow to the left, make sure the second input field is empty.
Search, and then replace. Works like a charm :)
I know this is a really old request, but for anyone stumbling upon this in the future.
Go into Search mode.
Type
<!--(.*?)-->. Enable the REGEX search function. (third button next to the search input box). Select the arrow to the left, make sure the second input field is empty. Search, and then replace. Works like a charm :)
u saved my day :_)
For multiline comments:
<!--(.|\n)*?-->