码迷,mamicode.com
首页 > 其他好文 > 详细

vs的 Avalon 自动补全

时间:2015-09-25 13:17:53      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:

以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,也同理

 

下面是属性 供参考  (从sublime 搞出来的)

{
// ms绑定
"ms": "ms-controller,ms-important,ms-include,ms-text,ms-html,ms-class,ms-scan,ms-hover,ms-active,ms-on,ms-visible,ms-if,ms-if-loop,ms-duplex,ms-css,ms-data,ms-checked,ms-selected,ms-readonly,ms-disabled,ms-enabled,ms-title,ms-src,ms-href,ms-attr,ms-repeat,ms-each,ms-with,ms-widget,ms-click,ms-dblclick,ms-mousedown,ms-mouseup,ms-mouseover,ms-mousemove,ms-mouseout,ms-keypress,ms-keydown,ms-keyup,ms-mouseenter,ms-mouseleave,ms-blur,ms-focus,ms-change,ms-hover,ms-css-${1:pname},ms-attr-${1:pname},ms-repeat-${1:data}Item,ms-each-${1:data}Item,ms-on-${1:event}",
// 组件
"widget": "accordion,at,browser,checkboxlist,colorpicker,cookie,coupledatepicker,datepicker,daterangepicker,dialog,doublelist,draggable=,dropdown,flipswitch,live,miniswitch,notice,pager,position,preview,progressbar,promise,resizable=,scrollbar,scrollspy=,simplegrid,slider,spinner,store,switchdropdown,tab,textbox,tooltip",
// data 绑定
"data": "data-include-rendered,data-include-loaded,data-with-sorted,data-duplex-changed,data-duplex-event,data-event,data-repeat-rendered,data-each-rendered,data-with-rendered"
}

 

vs的 Avalon 自动补全

标签:

原文地址:http://www.cnblogs.com/wang2650/p/4837806.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!