自从用了eclipse 和 vm文件,他喵的每次打开vm文件都弹出associate file name with the 'HTML' content type and retry?窗口,气死我了,网上拔了半天也没找到解决问题。
果然,自己动手,丰衣足食,折腾一番,搞定原因!
首先,eclipse *.vm 文件,语法高亮设置:以下两个方式都可以
一、文件打开时使用的编辑器
General>>Editors>>File Associations
二、content type选项
General>>Content Types,选择Text>>Html,点击Add,输入*.vm,保存。
问题:如果每次打开出现下图,原因在于vm文件被text type 优先绑定了
General>>Content Types,选择Text ,下方选中*.vm,然后remove、apply。