Some essential sublime text 2 plug-ins

Source: Internet
Author: User
ArticleDirectory
    • 1. Directly install
    • 2. Install the package Control Component
    • Summary

Sublime text 2 is a lightweight, concise, efficient, cross-platform editor. Its convenient color and compatibility with vim shortcuts have won the favor of many front-end developers, including me, I have been using it since I saw Xiao Fei's introduction. This article recommends some useful plug-ins and extensions.

Sublime text 2 is basically a shared software. The free version is basically the same as the paid version. It only occasionally prompts you to buy it, which basically does not affect usage. If you don't know about it, you can also take a look at the detailed introduction of niche software.

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 bring up the Console
    2. 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 ())
    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:

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...

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.