webStorm支持.wxml文件高亮显示

微信小程序官方说明需要在微信开发者工具中开发运行,但这个工具着实不咋地。

我是使用webstrom编辑,然后在微信开发者工具中热加载查看效果,因为webstrom默认并不支持*.wxml,添加使用xml(各人随意,我使用html格式显示不好看)格式编写。

  File -> Settings -> Editor -> File Types

在Recognized File Types 中找到你想使用的格式,然后在Registered Patterns 中添加 *.xml。

 

posted @ 2017-01-11 10:30  seaton  阅读(6718)  评论(1编辑  收藏  举报