以VS2013为例:

1.关闭 Visual Studio

2.打开 C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Packages\schemas\html 文件夹

3.删除 CommonHTML5Types.bin

4.打开 commonHTML5Types.xsd,以防万一,先备份再修改

5.打开文件找到此节点:<xsd:attributeGroup name="commonHTML5coreAttributeGroup"></xsd:attributeGroup>

在此节点中添加需要的提示,例如:

  ...

  ...

  <xsd:attribute name="ms-controller" />
  <xsd:attribute name="ms-include" />

</xsd:attributeGroup>

 6.保存,启动 Visual Studio

 

其他版本的VS,也同理

posted on 2015-08-03 14:23  葛森  阅读(800)  评论(2编辑  收藏  举报