您的位置:首页 > 其它

SUBLIME TEXT 3插件包管理安装

2013-12-22 11:20 495 查看


INSTALLATION


Simple

SECURITY NOTICE: The Python code used by this method does not use SSL because Sublime Text on Linux does not have the ssl module. Additionally, for Windows and OS X it is not possible for a simple snippet of code
like this to validate the SSL certificate forsublime.wbond.net. For a more secure installation method, follow the manual
instructions.
The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut
or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.
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())


This code creates the Installed Packages folder for you (if necessary), and then downloads thePackage
Control.sublime-package into it.


Manual

If for some reason the console installation instructions do not work for you (such as having a proxy on your network), perform the following steps to manually install Package Control:
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: