sublime text 安装Package Control

自动方式: 按快捷方式ctrl+`或者 the View > Show Console ,你会看到底部有一个输入框,然后输入: 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')
sublim text3的:
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())
手动方式:
Click the Preferences > Browse Packages… menu
Browse up a folder and then into the Installed Packages/ folder
Download Package Control.sublime-package and copy it into the Installed Packages/ directory
Restart Sublime Text
下载 package control包,放到 Sublime Text 2.0.2\Data\Installed Packages下面即可。然后重启编辑器。 参考: [1].  https://sublime.wbond.net/installation#st3

转载于:https://my.oschina.net/itfanr/blog/195683

猜你喜欢

转载自blog.csdn.net/weixin_33841503/article/details/91799547
今日推荐