如何在Resharper中注册自定义html标签? [英] How to register custom html tags in Resharper?

查看:219
本文介绍了如何在Resharper中注册自定义html标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的html文件中使用自定义标签来包含自定义淘汰组件[ 1 ]:

 < like-widget params =value:userRating>< / like-widget> 

我将标记添加到VisualStudio html格式设置中:


工具>选项>文本编辑器> HTML(Web表单)>格式>标记
特定选项


Resharper仍然无法识别自定义标签并发出警告


无法解析标签like-widget


如何让Resharper允许特定标签而不禁用未知标签警告?是否有某种设置文件,我可以在其中注册自定义html标记?

相关文章: href =https://stackoverflow.com/questions/25715897/how-to-add-custom-html-tags-to-visual-studio-and-avoid-squiggly-lines>如何将自定义HTML标签添加到Visual Studio and Avoid Squiggly Lines

解决方案

现在不可能 - 有相关的票证 https://youtrack.jetbrains.com/issue/RSRP-434190


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.

这篇关于如何在Resharper中注册自定义html标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆