安装package control
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:
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 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')
http://www.cnblogs.com/dolphin0520/archive/2013/04/29/3046237.html
3.Terminal插件
Terminal插件可以允许在Sublime Text2中打开cmd命令窗口,很实用的一个插件,安装好该插件好,打开cmd命令窗口的快捷键是
中文插件:
ConvertToUTF8
AndyPython
GBK Encoding Support
SublimeCodeIntel
SublimeREPL
Terminal
SideBarEnhancements
Package Control
来源:oschina
链接:https://my.oschina.net/u/229217/blog/189558