1. 下载sublime Text 2
2. 下载Python
http://www.python.org/download/
3. 安装Package Control
1.1) 按快捷方式ctrl+ ~(Tab键上方的那个键)
1.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;
urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler()));
open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read());
print 'Please restart Sublime Text to finish installation'
4. 配置python执行路径
在C:\Users\你的用户名\AppData\Roaming\Sublime Text 2\Packages\Python\Python.sublime-build文件中
添加Python路径
"path":"你的Python安装路径"
5. ctrl+b编译