I would like to use custom tags in my html files to include custom knockout components [1]:
<like-widget params="value: userRating"></like-widget>
I added the tag to the VisualStudio html formatting settings:
Tools > Options > Text Editor > HTML (Web Forms) > Formatting > Tag Specific Options
Resharper still does not recognize the custom tag and gives the warning
Cannot resolve tag "like-widget"
How do I tell Resharper to allow that specific tag without disabling the unknown tag warning? Is there some sort of setting file where I can register custom html tags?
Related article:
How to add custom HTML Tags to Visual Studio and Avoid Squiggly Lines
It is not possible right now - there is a related ticket https://youtrack.jetbrains.com/issue/RSRP-434190.
I would suggest to Disable the Inspection for Unknown HTML Tags as I indicated here:
Can I stop ReSharper objecting to Ionic HTML tags?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With