- 安装sublime text 3
- 打开软件, Help -> Check for Updates 更新到最新版本
- 安装 package control
- 按Ctrl+`调出console:
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
- 按Ctrl+`调出console:
- 通过package control安装如下插件(输入ctrl + shift + p ,然后输入ip,(选择package Control) ),安装插件
- ConvertToUTF8
- CSScomb
- Emmet
- FileDiffs
- HTML-CSS-JS Prettify
- Boxy Theme
- A File Icon
(装完Boxy Theme,弹出提示时同意)
- Boxy Theme Addon - Mono File Icons
- A File Icon
- Autoprefixer
- BracketHighlighter
- ColorPicker
- SASS Build
- View In Browser
- Preferences -> KeyBlindings :
- 粘贴如下代码到:Default(Windows).sublime-keymap -- User()
解决需要使用功能的键位冲突问题
- 粘贴如下代码到:Default(Windows).sublime-keymap -- User()
[
/*{ "keys": [ "f4" ], "command": "view_in_browser", "args": { "browser": "firefox" } },*/
{ "keys": [ "f3" ], "command": "view_in_browser", "args": { "browser": "chrome" } },
{ "keys": [ "f5" ], "command": "view_in_browser", "args": { "browser": "iexplore" } },
/*{ "keys": [ "ctrl+alt+i" ], "command": "view_in_browser", "args": { "browser": "safari" } },*/
{ "keys": ["ctrl+shift+alt+c"], "command": "color_pick" },
{ "keys": ["f4"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:/Program Files/Firefox Developer Edition/firefox.exe",
"extensions":".*"
}
}
]
效果展示