The method of deleting a large number of tags after searching for tags in vscode
This article mainly introduces the method of deleting a large number of tags after vscode search, which is very detailed and has a certain reference value. Friends who are interested must read it!
Vscode can use regular expressions to match tags and delete a large number of them.
Example:
Clear the tppabs tag:
In the html file:
Find:\ btppabs= "h [^"] * "
Replace: (empty)
Use regular matching to delete a large number of content in vscode:
Links to pictures in css files (take gif images as an example):
Find: tpa= http://[^\s]*.gif
Replace: (empty)
Comments in the css file:
Find: / * tpa.*?*/
Replace: (empty)
Fix the confirm link:
Find: href= "_ javascript:if (confirm ('(htt [^"\ s]). *? "
Replace: href= "$1"
The above is all the content of this article "how to delete a large number of tags after vscode search". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!