Sublime text 2 Shortcut Key Usage)

Source: Internet
Author: User

From: http://www.howzhi.com/group/it/discuss/10051#r3

CTRL + d (press the shortcut key repeatedly to continue and select the next same text for simultaneous editing)
CTRL + G jump to the corresponding row
CTRL + J merge rows (multiple rows to be merged have been selected)
CTRL + l select the entire line (Press and hold-continue to select downstream)
CTRL + M move the cursor to the start or end position in parentheses
CTRL + T word Interchange
CTRL + u soft undo
CTRL + P search for files and quick searches in the current project; enter @ to search for the main file title/function; or enter: jump to a line of the file;
CTRL + R quickly list/jump to a function
CTRL + k backspace Delete from cursor to first line
CTRL + kb enable/disable sidebar
CTRL + KK Delete from cursor to end of line
CTRL + KT fold Property
CTRL + Ku to uppercase
CTRL + KL to lowercase
CTRL + K0 show all
CTRL + enter insert row (line feed)
CTRL + TAB switch in the current window

CTRL + Shift + A select the cursor position parent tag
CTRL + Shift + D copy the entire row where the cursor is located and insert it before this row
CTRL + Shift + F search in folders. Unlike the normal Editor, sublime allows you to add Multiple folders for search.
CTRL + Shift + k Delete the entire row
CTRL + Shift + l select multiple rows with the mouse (press the shortcut key) to edit these rows at the same time
CTRL + Shift + M select the content in the brackets (Press and hold-continue to select the parent bracket)
CTRL + Shift + P open the Command Panel
CTRL + Shift +/comment on selected content
CTRL + Shift + continue: This line of code can be moved and exchanged with the upstream
CTRL + Shift + continue: This line of code can be moved and exchanged with the downstream code.
CTRL + Shift + [collapse code
CTRL + Shift +] Show Code
CTRL + Shift + enter insert row before cursor
CTRL + Pagedown, CTRL + Pageup switch files in the order they are enabled

CTRL + z undo
CTRL + y resume undo
CTRL + F2 set bookmarks
CTRL +/comment out the entire line (if the selected content is used, the effect is the same as that of "Ctrl + Shift +)
CTRL + left mouse button can select multiple texts to edit at the same time

Shift + right-click (or use the middle mouse button) to select vertical lines
Shift + F2 bookmarks
Shift + TAB remove indentation
Alt + Shift + 1 ~ 9 (non-keypad) small windows with equal numbers displayed on the screen

Alt +. Close the current tag
Alt + F3 select text press the shortcut key to select all the same text for simultaneous editing

Tab indent automatically completed
Next bookmarks on F2
F6 check syntax error
Sort F9 rows by A-z)
F11 full screen mode

 

1. Package Control)

 

Open sublime text 2, press the shortcut key Ctrl + ', or click tools → command palette to bring up the console;

Copy and paste the following code into 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) elsenone; 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 package control in preferences → package settings, the installation is successful.

2. Install the alignment plug-in

This is an easy-to-use plug-in for mamin who like to be neat. This plug-in can be installed through the package Control installed above:

Press Ctrl + Shift + P to bring up the Command Panel;

Enter install to bring up the package control: Install package option, and press ENTER;

Enter alignment, select and press enter to install alignment;

Restart sublime text 2, select the text, and press CTRL + ALT + A to align the text.

3. Install soda topic

The topic here is different from the color scheme for the code, but for the topic of the software itself in sublime text 2. The topic can also be installed through the omnipotent package control.

Press Ctrl + Shift + P to bring up the Command Panel;

Enter install to bring up the package control: Install package option, and press ENTER;

Enter theme soda and press enter to install theme;

After the installation, activate the topic, open preferences → global settings-user, and add the following code to save the settings:

"Theme": "soda light. sublime-Theme" or "theme": "soda dark. sublime-Theme"

4. Install the ctags plug-in

First, download the compressed package from the ctags official website, decompress it to a certain place on the computer, such as "C: \ Program Files \ ctags", and add the ctags to the system variables:

Right-click "my computer" and choose "properties"> "advanced"> "environment variable"> "system variable"> "path", and click "edit"> "; C: \ Program Files \ ctags (not including double quotation marks) are copied to the end → the last "OK" is saved.

Then install the ctags plug-in through package control:

Press Ctrl + Shift + P to bring up the Command Panel;

Enter install to bring up the package control: Install package option, and press ENTER;

Enter ctags and press enter to install.

After installation, press Ctrl + T, CTRL + R in the current directory of the project to generate the. tags file. When the cursor stays on a function, press Ctrl + T and CTRL + T to open the file where the function is located and jump to the corresponding position.

PS: It took me a long time to install this plug-in, mainly because I don't know how to download the compressed package from the ctags official website and modify the system variables, later, I learned how to configure this configuration only when I sent a foreign reference material from a blogger. I first learned that this software is useless because it does not have the function to trace functions like Eclipse. Later I learned that it can be implemented by installing the ctags plug-in. After this function is installed, sublime text 2 is preferred.

5. jsformat plug-in

Format JS: select a piece of text, control + ALT + F.

6. docblockr

Enter/** at the top of the JS function, and press enter to generate the doc.

7. sublime-jslint

Open a JS file and Control + J to output the result of the jslint check. Open the packages directory, find the plug-in directory sublime-jslint, open the sublime-jslint.sublime-settings file, you can modify the jslint configuration, you can also configure the file to automatically check when saving, such:

{// Path to the jslint jar. // leave blank to use bundled jar. "jslint_jar": "", // options pass to jslint. // Jerry Qu Note: all available configuration reference here, https://github.com/fbzhong/sublime-jslint/wiki/Available-jslint4java-options "jslint_options ": "-- encoding UTF-8 -- bitwise -- browser -- cap -- CSS -- devel -- debug -- edevil -- forin -- fragment -- on -- Sub -- white -- windows -- sloppy", // ignore errors, regEx. "ignore_errors": [// "expected an identifier and instead saw 'undefined' \ (a reserved word \)"], // run jslint on Save. "run_on_save": false, // debug flag. "debug": false}

8. sidebarenhancements

We recommend that you use package control to install the sidebarenhancements plug-in, which greatly enhances the option of right-clicking in the sidebar directory tree.

9. Zen Coding

10. jquery package for sublime text

11, clipboard history12, bracket highlighter13, GBK to utf814, git other reference: http://www.cnblogs.com/leecanz/archive/2012/03/04/2379446.html
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.