Introduction to sublime text

Source: Internet
Author: User

Introduction to sublime text

If notepad ++ is a good code artifact, sublime text should be called the artifact. Sublime text
The biggest advantage is cross-platform, which can be used perfectly for Mac and Windows. The second advantage is powerful plug-in support, which is almost omnipotent.

Start using sublime text:

Sublime text has the dev version, which is recommended. We recommend that you download the portable version.
It is convenient to use the sample, and you do not need to install it, And the plug-in and the subject are in a directory that is portable.

Sublime text shortcut:

CTRL + Shift + P: Open the Command Panel
CTRL + P: Search for files in the project
CTRL + G: the row to jump
CTRL + W: Close the currently opened file
CTRL + Shift + W: Close all open files
CTRL + Shift + V: paste and format
CTRL + D: select a word. If you repeat a word, you can add and select the next same word.
CTRL + L: select a row. You can add and select the next row in sequence.
CTRL + Shift + L: Select multiple rows
CTRL + Shift + enter: Insert a new row before the current row
CTRL + X: Delete the current row
CTRL + M: Jump to the corresponding brackets
CTRL + u: Soft undo, undo cursor position
CTRL + J: Select TAG content
CTRL + F: Search for content
CTRL + Shift + F: Find and replace
CTRL + H: replace
CTRL + R: Go to Method
CTRL + N: New window
CTRL + K + B: Switch sidebar
CTRL + Shift + M: select the content of the current bracket.
CTRL + F2: Set/delete tags
CTRL +/: comment out the current row
CTRL + Shift +/: insert comments at the current position
CTRL + ALT +/: block annotation, focus on the first line, and write the annotation description
CTRL + Shift + A: before and after the current label is selected
F11: Full Screen
Shift + F11: In Full Screen mode, only the current file is edited.
Alt + F3: select all the same words
Alt +.: Closed tag
Alt + Shift + number: split screen display
Alt + number: Switch to open the nth File
Shift + right-click and drag: the cursor is mostly not used to change or insert column content
You can switch the tab file with the forward and backward keys of the mouse.
Press ctrl and click or select one by one. You can edit multiple locations.
Press Ctrl + Shift + up/down to replace rows

Sublime text settings:

Setting user
Here is what I use
"Font_face": "Courier New ",
Font_size: 9.0,
"Highlight_line": True,
"Scroll_past_end": false,
"Tab_size": 4,
"Theme": "soda dark. sublime-theme ",
"Word_wrap": True
}

Sublime text Plugin:

We recommend that you enable package control first to facilitate plug-in installation. To enable this function, choose "View-show console" from the menu bar,
Paste the followingCodePress enter and restart sublime. If your network cannot be enabled, you cannot use it. Search and download it manually.
(Is your network blocked ?).

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 ())

Start to install some useful plug-ins, CTRL + Shift + P (menu-tools-command paletter), and enter install
Select install package and press Enter. Enter or select the plug-in you need and press enter to install the package. (pay attention to the small text changes in the lower left corner. A prompt will be displayed.
Install other plug-ins.

Zencoding
I have to use a front-end development plug-in, write less, show more. can be directly used after installation, triggered by the tab key,
Alt + Shift + W is a code machine.

Alignment
Code alignment, such as writing several variables, selecting these lines, CTRL + ALT + A, wow, all.

Prefixr
You can add private suffixes such as-WebKit automatically when writing CSS, and press CTRL + ALT + X to trigger them.

Tag
HTML format, right-click auto-format tags on ducument.

Clipboard history
Clipboard history, show more historical copies, CTRL + Shift + V triggered.

Sidebarenhancements
The function of right-click the sidebar is enhanced, which is very practical.

Theme-soda
The perfect encoding topic, once used, said "theme": "soda dark. sublime-Theme" added to the setting user"

GBK to utf8
Convert the file encoding from GBK to utf8, and find the file in the menu-file.

SFTP
Directly edit the files on the FTP or SFTP server.

WordPress
Integrating some WordPress functions is especially useful for people like me who often need to write WP templates and plug-ins.

phptidy
PHP code arrangement
Yui compressor
compressed JS and CSS files
http://win8.xapcn.com/news/sublime_text_1203.html
surface | Win8 download: http://win8.xapcn.com/
Win8 software: http://win8.xapcn.com/software/
Win8 game: http://win8.xapcn.com/games/
Win8 jailbreak: http://win8.xapcn.com/tutorial/
surface | Win8 software game love application HD: http://www.xapcn.com/aiyingyong/

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.