直接安装
安装Sublime text 2插件很方便,可以直接下载安装包解压缩到Packages目录(菜单->preferences->packages)。
使用Package Control组件安装
也可以安装package control组件,然后直接在线安装:
- 按Ctrl+`调出console(注:安装有QQ输入法的这个快捷键会有冲突的,输入法属性设置-输入法管理-取消热键切换至QQ拼音)
- 粘贴以下代码到底部命令行并回车:
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()) - 重启Sublime Text 3。
- 如果在Perferences->package settings中看到package control这一项,则安装成功。
安装 Emmet 插件代码:table.Mytable>tr.MyTableTr*3>td.MyTableTr*5设置启动项:菜单:Key bindings -> User[{ "keys": ["ctrl+shift+c"], "command": "copy_path" },{ "keys": ["alt+f12"], "command": "open_in_browser" },{ "keys": ["f12"], "command": "side_bar_files_open_with","args": {"paths": [],"application": "D:\Program Files\Mozilla Firefox\firefox.exe","extensions":".*" //any file with extension} },{ "keys": ["ctrl+f12"], "command": "side_bar_files_open_with","args": {"paths": [],"application": "C:\Program Files\Google\Chrome\Application\chrome.exe","extensions":".*" //any file with extension}}]