Sublime Text 2 is a lightweight, concise, efficient, cross-platform editor, convenient color matching and compatible with the various advantages of Vim shortcuts won a lot of front-end developers love, of course, including me, after seeing the introduction of small fly, I have been using. This article recommends some useful plugins and extensions.
Sublime Text 2 is basically shareware, free version and paid edition basically no difference, just occasionally will be the box let you go to buy, this basic does not affect the use. If you don't understand it, you can also look at this detailed introduction to the niche software.
How to install the sublime Text 2 plugin: 1. Direct installation
Installing the sublime Text 2 plugin is convenient and can be downloaded directly from the installation package to the Packages directory (menu->preferences->packages).
2. Installing using the Package control component
You can also install the package control component and install it directly online:
- Press CTRL + ' recall
console
- Paste the following code into the bottom command line and 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 the package control item in Perferences->package settings, the installation succeeds.
If this method cannot be successfully installed, you can download the file here manually.
To install a plugin using the package control method:
- Press to
Ctrl+Shift+P
bring up the command panel
- Enter install to bring up the Install Package option and enter, then select the plug-in you want to install in the list.
The uncomfortable is that some network environment may not allow access to unfamiliar network environment to set up a firewall, and sublime Text 2 seemingly unable to set up the proxy, may not get the list of installation packages.
Ok, the method is finished, here is the topic, some useful sublime Text 2 plugin:
Zen Coding
This, do not explain, still do not know Zencoding's classmates strongly recommend to look at: "Zen Coding: A quick way to write html/css code."
The developer of the Ps:zen Coding for Sublime Text 2 plugin has stopped sharing on GitHub and is now only installed through the package control.
JQuery Package for Sublime Text
If you can't live without jquery, this is a must.
Sublime PREFIXR
PREFIXR,CSS3 Private Prefix auto-complete plug-ins, obviously also very useful wow
JS Format
A JS code format plugin.
Sublimelinter
A plugin that supports lint syntax can highlight lines of code that Linter think is wrong, and also support highlighting special notes such as "TODO," which can be quickly positioned. (IntelliJ idea's Todo function is very good, this plug-in, although not comparable, but also enough for it)
Placeholders
Therefore, the name of the idea, occupy, including some placeholder text and HTML code snippets, practical.
Sublime Alignment
Used for automatic alignment of code formats. Legend has it that the latest version of Sublime has been integrated.
Clipboard history
Pasteboard history for easy use of copy/cut content.
Detectsyntax
This is a code detection plugin.
Nettuts Fetch
If you are using a common or open-source framework, such as Normalize.css or modernizr.js, however, after a while, it may be that the open Source Library has been updated, and you have not found that this time may not be suitable for your project, then you will have to re-toss or continue to use the stale files. Nettuts fetch lets you set up a list of files that need to be synced, and then save the updates.
Jsminifier
The plugin automatically compresses JS files based on Google Closure compiler.
Sublime Codeintel
Code Automatic Hints
Bracket highlighter
Similar to code matching, you can match the range within parentheses, quotation marks, and so on.
Hex to HSL
Auto-Convert color values from 16 to HSL format, shortcut key Ctrl+shift+u
GBK to UTF8
Convert file encoding from GBK to Huang UTF8, shortcut keysCtrl+Shift+C
Git
The plugin basically implements all the functions of git.
Summarize
Well, that's probably all, if you have a plugin or extension that you often use, you're welcome to recommend it. Sublime Text 2 is really a love at first sight of the editor, every time with someone to talk to the editor must recommend ... :)
Some essential sublime Text 2 plugins