sublime text下载 http://www.sublimetext.com/
autoprefixer https://github.com/postcss/autoprefixer
autoprefixer浏览器配置文档 https://github.com/browserslist/browserslist
autoprefixer在线版 https://autoprefixer.github.io/
安装语言包
打开sublime text编辑器,Ctrl + shift + p,选择Install package,然后输入Chinese,即可开始安装
我这边安装的是这个插件
也切换回英语
安装配置autoprefixed
1.打开sublime text编辑器,Ctrl + shift + p,选择Install package,然后输入autoprefixer,即可开始安装
2.配置快捷键
安装完后,并不能立即使用,还得配置一下快捷键,选择Preferences =》 Key Bindings,添加如下代码:
{ "keys": ["ctrl+alt+a"], "command": "autoprefixer" }
3.选择Preferences => Package Settings => Autoprefixer,在文件右侧添加如下代码,如我的是这样的:
{
"browsers": ["last 30 versions", "> 0%", "> 0% in cn", "Firefox > 0", "ie > 0"],
"cascade": true,
"remove": false,
}