Hello, little friends. , I wrote a small summary based on what happened last night: "Package control Installation" under Mac Sublime text. Originally installed the package control is a very simple thing, even for the first time to use the sublime text of small partners can easily find the installation method in Baidu.
However, the great heavenly Kingdom actually put the package control to strong The Wall!! Yesterday's cruel buy MBP arrived, home warmly full of want to install St, encountered this problem. Very tangled, sad, feel the whole programming career is extremely gloomy (joking). Here's a summary of how you'll find it all night . Another: Are the achievements of the predecessors, I just did a bit of finishing. Hold the Great God's thigh .
1.ST Download:
Baidu Cloud Address: Http://pan.baidu.com/s/1kTMo0CJ Extract code: Mteg
This version is 2.02 mac Chinese version (I am English slag, ashamed to walk away) from http://sublimetext.iaixue.com/ download, thank the Great God selfless.
2.package control by the wall solution:
To modify the Hosts file, first know where the hosts file: Click on the top of the desktop "go", "Go to Folder" (or shortcut key shift+command+g) input/PRIVATE/ETC Press ENTER to see the Hosts file inside. Drag a copy to the desktop, right-click "Text Edit" to open, modify, drag back to the original position, replace.
What to modify: Add Plus
50.116.34.243 sublime.wbond.net
domain name is wall, IP has not been wall ( come on ~ ~).
3. Install the package Control:
after the hosts have been added, there are two ways to install the package Control, installation method address: Https://packagecontrol.io/installation#st3 , the first of these is described below.
1) Open the console
Mac shortcut key: command+~
2) Copy the following code
ImportUrllib2,os,hashlib; h ='7183a2d3e96f11eeadd761d777e62404'+'e330c659d4bb41d3bdf022e94cab3cd0'; PF ='Package Control.sublime-package'; IPP = Sublime.installed_packages_path (); Os.makedirs (IPP)if notOs.path.exists (IPP)ElseNone; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); by = Urllib2.urlopen ('http://sublime.wbond.net/'+ Pf.replace (' ',' '). read (); DH = hashlib.sha256 (by). Hexdigest (); Open (Os.path.join (IPP, PF),'WB'). Write (by)ifDH = = hElseNone;Print('Error validating download (got%s instead of%s), please try manual install'% (DH, h)ifDH! = hElse 'Restart Sublime Text to finish installation')
In the console paste the copy command above, enter the execution! Wait for the prompt "Restart sublime Text2"! Reboot! Installation Complete
4. Install the plugin using the package control:
Mac Command+shift+p bring up the package control Panel
Common commands:
Install package (Installation extension)
List Packages (List all extensions)
Remove package (remove extension)
Upgrade Package (Upgrade extension)
This is a summary: Celebrate, dance
The "Package control" installation of sublime text under Mac