Common plug-ins and installation methods of sumblime text 2

Source: Internet
Author: User

    (Reprinted) Common plug-ins and installation methods of sumblime text 2

    Edit: Internet browsing times: 68458 Release Date: 08:13:49

    [Abstract] it is more convenient to use the package control component for online installation.

    How to install the sublime text 2 plug-in:

    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:

  1. Press Ctrl + 'to call up the console. (Note: If this shortcut key is installed with the QQ input method, there will be a conflict. Choose "Input Method property Settings"> "Input Method management"> cancel the hotkey and switch to "QQ pinyin)
  2. Paste the following code to the bottom of the command line 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 ())
  3. Restart sublime text 2.
  4. 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:

  1. Press Ctrl + Shift + P to bring up the Command Panel
  2. Enter install to bring up the install package option and press Enter. Then, select the plug-in to be installed in the list.

Unfortunately, some network environments may not allow access to a strange network environment to set up a firewall, while sublime text 2 does not seem to be able to set a proxy, and may not be able to get the list of installation packages.

Well, the method has been introduced. The following is the topic of this article, some useful sublime text 2 plug-ins:

GBK encoding support

For gb2312, sublime text 2 is not supported. We can use Ctrl + Shift + P to call up the command panel or perferences-> package contro, enter install to call up the install package option, and press Enter, enter "GBK encoding support" and select "Start installation". The installation is successful in the status bar in the lower left corner. When you open the GBK encoded file, there will be no garbled characters. If you need to convert it to UTF-8, you can choose file-GBK to utf8-save with utf8.

Zen Coding

I don't want to explain this. If I still don't know about zencoding, I strongly recommend that you take a look at "Zen coding: A quick way to compile html/CSS code".

PS: the developer of the Zen coding for sublime text 2 plug-in has stopped sharing on GitHub. Currently, only package control is used for installation.

Jquery package for sublime text

If you cannot leave jquery, this must be done ~~

Sublime prefixr

Prefixr, css3 private prefix auto-completion plug-in, obviously also very useful wow

JS format

A js Code formatting plug-in.

Sublimelinter

A plug-in that supports the lint syntax can highlight lines of code that Linter thinks are incorrect, and also supports highlighting some special annotations, such as "Todo", so that you can be quickly located. (Intellij idea's todo function is awesome. Although this plug-in is not comparable, It is enough)

Placeholders

Therefore, it is practical to use placeholder text and HTML code snippets.

Sublime alignment

It is used for automatic alignment of code format. It is said that the latest version of sublime has been integrated.

Clipboard history

Clipboard history to facilitate the use of copied/cut content.

Detectsyntax

This is a code detection plug-in.

Nettuts fetch

If you are using some public or open-source frameworks, such as normalize.css or modernizr. JS. However, after a while, the open-source library may have been updated, but you have not found that it may not be suitable for your project at this time, then you have to try again or continue using old files. Nettuts fetch allows you to set a list of files to be synchronized and save the updates.

Jsminifier

Based on Google closure compiler, this plug-in automatically compresses JS files.

Sublime codeintel

Code prompt

Bracket highlighter

Similar to code matching, it can match the brackets, quotation marks, and other symbols.

HEX to HSL

The color value is automatically converted from hexadecimal to HSL. The shortcut key is Ctrl + Shift + U.

GBK to utf8

Convert the file encoding from GBK to utf8. The shortcut key is Ctrl + Shift + C.

Git

This plug-in basically implements all the functions of git.

Summary

Well, that's probably the case. If you have common plug-ins or extensions, we recommend them. Sublime text 2 is really a love-at-first-sight editor. It is recommended every time you talk to someone else about the editor...

Source Document

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.