Due to various reasons for the visit, so record for yourself to use, the original address is as follows:
Http://www.bonusbits.com/wiki/HowTo:Setup_Package_Control_for_Sublime_Text
Method 1 (Sublime Text Script)
This won't work if you are behind a proxy. If you ' re behind a proxy, use Method 2.
- Open Sublime Console
-
Ctrl + '
- Sublime Text 2
- ImportUrllib2,Os; Pf=' Package Control.sublime-package '; Ipp= Sublime.Installed_packages_path();Os.Makedirs(IPP)IfNotOs.Path.Exists(IPP)ElseNone;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 ' Span class= "Br0")
- Sublime Text 3
- ImportUrllib.Request,Os, Hashlib; H=' eb2297e1a458f27d836c04bb0cbaf282 ' +' D0e7a3098092775ccb37ca9d6b2e4b7d ';p F=' Package Control.sublime-package '; Ipp= Sublime.Installed_packages_path();Urllib.Request.Install_opener(Urllib.Request.Build_opener(Urllib.Request.Proxyhandler())); By=Urllib.Request.Urlopen(' http://packagecontrol.io/' + PF.Replace(‘ ‘,'%20 ')).Read(); Dh= Hashlib.sha256 Hexdigest () ; print ( ' Error validating download (got %s instead of %s), please try Manual Install ' % , h) if dh != h else open (os. Path. join ( ipp, pf, ' WB ' Write (By)
- Restart Sublime
Method 2 (manually)
If you is behind a proxy use the This method. After installing then set your proxy settings
- Download plugin file
-
http://sublime.wbond.net/Package%20Control.sublime-package
- copy package control.sublime-package to the Install packages< /strong> folder under Sublime Text install folder.
- Windows
-
C:\Users\username\AppData\Roaming\Sublime Text 2\instal LED Packages
- Mac
- SUDO&N Bsp cp ~/downloads/package\ control.sublime-package ~< Span class= "sy0" >/library/application\ support/sublime\ text\ 3/installed\ packages/
- Restart Sublime
Related articles:
http://blog.jobbole.com/82527/
[Sublimetext] installation package management