How to install the sublime Text 2 plugin

Source: Internet
Author: User

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:

    1. Press CTRL + ' bring up console
    2. 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())
    3. Restart Sublime Text 2.
    4. 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:
    1. Press Ctrl+shift+p to bring up the command panel
    2. 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:

--Transfer note

ConvertToUTF8 solve sublime does not support GBK, GB2312 encoding problem, support sublime open GB2312 encoded file and provide its input and edit Chinese, When the GB2312 file is opened, it is converted to UTF8 encoding (which does not modify the original file encoding), and the input and edit Chinese characters are saved after they are saved using sublime, as if they were converted to the original encoding. --Transfer of 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 key Ctrl+shift+c

Git

The plugin basically implements all the functions of git.

How to install the sublime Text 2 plugin

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.