安装 Sublime Package Control
1、打开 Sublime Text 2,按下 Control + ` 调出 Console
2、将以下代码粘贴进命令行中并回车:
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
3、重启 Sublime Text 2,如果在 Preferences -> Package Settings中见到Package Control这一项,就说明安装成功了
安装SublimeCodeIntel 插件
使用Package Control安装,Command+Shift+p唤醒交互
都需要进行一次重启即可,另外需要配置下SublimeCodeIntel\.codeintel\config文件,文件内容如下:
"Python": {
"python":"C:/Python27/python.exe",
"pythonExtraPaths":
[
"C:/Python27",
"C:/Python27/DLLs",
"C:/Python27/Lib",
"C:/Python27/Lib/lib-tk",
"C:/Python27/Lib/site-packages"
]
}
"python":"C:/Python27/python.exe",
"pythonExtraPaths":
[
"C:/Python27",
"C:/Python27/DLLs",
"C:/Python27/Lib",
"C:/Python27/Lib/lib-tk",
"C:/Python27/Lib/site-packages"
]
}
查看已经安装的package(
Perferences->Browse Packages)