Ctrl+l |
Select Entire Row ( Press and hold - continue to select the downstream ) |
Ctrl+kk |
Remove from cursor to end of line |
Ctrl+shift+k |
Delete entire row |
Ctrl+shift+d |
Copy the entire line of the cursor and insert it before the line |
Ctrl+j |
Merge rows (multiple rows that need to be merged are selected ) |
Ctrl+ku |
Capitalize instead |
Ctrl+kl |
Change to lowercase |
Ctrl+d |
Word Selection (press and hold-continue to select the next same string ) |
Ctrl+m |
Move the cursor to the start or end position within the parentheses |
Ctrl+shift+m |
Select the contents in parentheses (press and hold -continue to select the parent bracket ) |
ctrl+/ |
Comment Entire line (if selected, same as "ctrl+shift+/" effect ) |
ctrl+shift+/ |
Note Selected content |
Ctrl+space |
Auto -Complete (Win and System shortcut key conflict, need to modify ) |
CTRL + Z |
Revoke |
Ctrl+y |
Restore Undo |
Ctrl+shift+v |
Paste and Auto Indent (the other brother wrote, the test win system automatically indentation invalid ) |
Ctrl+m |
Cursor jumps to the corresponding parentheses |
ALT +. |
Close the current label |
Ctrl+shift+a |
Select the cursor position parent tag pair child |
ctrl+shift+[ |
Collapse Code |
Ctrl+shift+] |
Unwind code |
Ctrl+kt |
Collapsing properties |
Ctrl+k0 |
Expand All |
Ctrl+u |
Soft undo |
Ctrl+t |
Word Exchange |
Ctrl+enter |
After inserting rows |
Ctrl+shift Enter |
Before inserting a row |
Ctrl+k Backspace |
Remove from cursor to beginning of line |
Ctrl+shift+up |
Interchange with upstream |
Ctrl+shift+down |
Swap with downstream |
Shift+tab |
Remove indent |
Tab |
Indent in |
F9 |
Row sort (by a- z) |
JS Plugin
1. Installation package Control
Open Sublime Text 2, press the shortcut key CTRL + ' or click Tools→command Palette bring up console console;
Copy and paste the following code into the command line after you 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 the package Control item in Preferences→package Settings, the installation is successful.
2. Install alignment plug-in
For a neat puyuma, this is a convenient plugin. The plugin can be installed using 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 enter;
Enter alignment, select and press ENTER to install;
Restart Sublime Text 2, select the text and press CTRL + ALT + A to make the Zicao.
3. Installation Soda Theme
The theme here is different from the color scheme for the code, but rather the theme of the software itself for Sublime Text 2, which can also be installed through the Universal package Control.
Press CTRL + SHIFT + P to bring up the command panel;
Enter install to bring up the package Control:install package option and enter;
Enter theme Soda Select and then enter to install;
To activate the theme after installation, open Preferences→global Settings–user, plus the following code is saved to take effect:
"Theme": "Soda light.sublime-theme" or "theme": "Soda dark.sublime-theme"
4. Install Ctags plug-in
First, download the compressed package from the Ctags website, unzip it somewhere in the computer, such as "C:\Program files\ctags", then add the ctags to the system variables:
In the "My Computer" right-click properties → advanced → environment variables → in "System variables" find "Path", click "edit" → "; C:\Program Files\ctags "(not including double quotes) copy to Last → Last all the way" OK "to save.
Then install the CTags plugin via the package Control:
Press CTRL + SHIFT + P to bring up the command panel;
Enter install to bring up the package Control:install package option and enter;
Enter Ctags Select and then enter to install.
After installation, press CTRL + T, CTRL + R in the current directory of the project to generate. tags files. When the cursor rests on a function, press the shortcut key ctrl+t, ctrl+t can open the file where the function is located, and jump to the corresponding position.
PS: Install this plugin toss me quite a long time, mainly do not know also to download from Ctags official website compressed package, as well as modify the system variables, later or a Bo friends to send me foreign reference to know to this configuration. Just beginning to know that this software is useless because there is no function like Eclipse can trace functions, later know can be implemented by installing the Ctags plug-in. After this feature is installed, you prefer to use sublime Text 2.
5. Jsformat Plug-in
Format JS: Select a text, Control+alt+f.
6, Docblockr
Enter/** above the JS function, and then enter, Doc will be good to build.
7, Sublime-jslint
Open a JS file, control+j, you can output the results of jslint check. Open the Packages directory, find the plug-in directory sublime-jslint, open sublime-jslint.sublime-settings file, you can modify the JSLint configuration, you can also configure the file to automatically check when saving, such as:
{//Path to the JSLint jar.//Leave blank to use bundled jar. "Jslint_jar": "",//Options pass to JSLint. Jerry qu Note: All available configuration references here, https://github.com/fbzhong/sublime-jslint/wiki/Available-jslint4java-options "Jslint_ Options ":"--encoding utf-8--bitwise--browser--cap--css--devel--debug--evil--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
It is recommended to install sidebarenhancements this plugin through the package Control, which can greatly enhance the right-click option in the Sidebar directory tree.
9. Zen Coding
10. JQuery Package for Sublime Text
11. Clipboard History
12, bracket highlighter
13, GBK to UTF8
14. Git
Sublime Text 2 shortcut keys Daquan