1. cd 命令,进入Sublime Text插件目录下的User
以mac osx操作系统为例,路径是:
/Users/YOURNAME/Library/Application Support/Sublime Text 3/Packages/User
2. 运行
git clone https://github.com/Abbotton/weapp-snippet-for-sublime-text-2-3.git
详情请戳:https://github.com/Abbotton/weapp-snippet-for-sublime-text-2-3
然后在sublime text编辑器里敲入比如wbutton,紧接着(不带空格)敲tab键,这个snippet就会为我们智能补全小程序风格的按钮代码了
网友评论