Created
June 24, 2013 13:35
-
-
Save ninozhang/5850093 to your computer and use it in GitHub Desktop.
sublimetext 安装 package control 命令
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
使用Package Control组件安装 | |
按Ctrl+`调出console; | |
粘贴以下代码到底部命令行并回车: | |
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()) | |
重启Sublime Text 2,如果在Perferences->package settings中看到package control这一项,则安装成功; | |
接下来,按下Ctrl+Shift+P调出命令面板。找到Install Package 选项并回车,然后在列表中选中要安装的插件。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment