Sublime TEXT2 Installing the package Control installation method is not unique
Reference official Website Https://sublime.wbond.net/installation First method: Install via Python command
find "View" in the menu bar and select "Show Console" under the Windows shortcut key ctrl+~; Mac under command+~
import urllib2,os,hashlib; h = ' 7183a2d3e96f11eeadd761d777e62404 ' + ' e330c659d4bb41d3bdf022e94cab3cd0 '; pf = ' Packa GE 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 ())); by = Urllib2.urlopen (' http://sublime.wbond.net/' + pf.replace (', ') '). read (); DH = hashlib.sha256 (by). Hexdigest (); Open (Os.path.join (IPP, PF), ' WB '). Write (by) if DH = = h else None; Print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h) if DH! = H Else ' please rest Art Sublime Text to finish installation ')
- On the console, enter the Copy command on the top, and enter to execute! Wait for the prompt "Restart sublime Text2"! Reboot! Installation Complete
The second method: Download the package via the official website and import the packages Control
- Find "Preferences" in the menu bar and select "Browse Packages ..."
- Open a file directory This directory is the file directory where the "package Control" folder is placed
- Download package Control.sublime-package to unzip and copy the "package Control" directory into the directory just opened above
- Restart Sublime Text
After you install the package control, you can install the plugins we need. Shortcut keys: Windows under Ctrl+shift+p or Mac Command+shift+p) bring up the package Control Panel, common commands for the install (Installation extension), List Packages ( List all extensions), remove package (remove extension), Upgrade package (upgrade extension) Lua under common plug-in Lua Dev cocos2d-x LUA, etc.
GBK Encoding Support--Enables the editor GBK encoding
Zencoding-You can write HTML files very quickly and use Ctrl+alt+enter to Exhale
Jsformat--Formatting JavaScript
HTML5 ACTIONSCRIPT3, wait.
Sublime TEXT2 Installing the package Control