plibither8 / vscode-remove-comments

🚫 VS Code extension to remove all comments from your code at once — 60+ languages supported
https://marketplace.visualstudio.com/items?itemName=plibither8.remove-comments
MIT License
36 stars 13 forks source link

Feature Request: Remove Comments in HTML #1

Open SteveKennedy opened 6 years ago

SteveKennedy commented 6 years ago

For Example:

From:

<div>
<!-- This is a comment -->
This is real content.
</div>

To:

From:

<div>
This is real content.
</div>
saifalfalah commented 5 years ago

I second this. Much needed.

Joshdw commented 5 years ago

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 :)

brunoespi commented 2 years ago

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 :_)

five23 commented 1 year ago

For multiline comments:

<!--(.|\n)*?-->