The installation of sublime on the internet is really easy to use. (The plug-in that I often use when creating HTML pages isZen Coding
If you do not know the plug-in, we strongly recommend that you take a look.) 1. Directly install
It is very convenient to install the sublime text 2 plug-in. You can directly download the installation package and decompress it to the packages directory (menu-> preferences-> packages ).
2. Install the package Control Component
You can also install the package control component and install it online:
- Press Ctrl +'Call the console (Note: The red symbol behind Ctrl + is the key on the tab on the keyboard, similar to the single quotation mark.)
-
- Paste the followingCodeGo to the command line at the bottom and press Enter:
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 ())
- Restart sublime text 2.
-
- If you see package control in perferences-> package settings, the installation is successful.
If this method cannot be installed successfully, you can download the file here for manual installation.
How to install the plug-in using package control:
- press Ctrl + Shift + P to bring up the Command Panel
- enter install to bring up the install package option, press enter, and select the plug-in to be installed in the list.