Download and install
Sublime Text2 is an open source software, do not need to register to use (although there is no registration will have pop-up windows, but basically does not affect the use).
: http://www.sublimetext.com, please download it yourself according to the system version. Download it and install it right after.
Common shortcut keys
In Sublime Text 2, you can switch to the desired file very quickly, just by opening the switchboard via "Ctrl+p".
Then enter the name of the file you want to find to quickly switch to the file. If you want to find a function, you can quickly switch to the file that defines the function by entering the @+ function name.
Ctrl+l Select Entire row (press and hold-continue to select the downstream)
CTRL+KK Delete from cursor to end of line
Ctrl+shift+k Delete an entire row
Ctrl+shift+d the entire line where the cursor is copied, before inserting the line
Ctrl+j merge rows (multiple rows that need to be merged are selected)
Ctrl+ku Change to uppercase
CTRL+KL Change to lowercase
Ctrl+d Word selection (press and hold-continue to select the next same string)
Ctrl+m cursor to start or end position within parentheses
Ctrl+g Quick jump to the specified line
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+/Comment Selected content
CTRL + Z Undo
Ctrl+y Recovery undo
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+[Folding Code
Ctrl+shift+] Unwind code
Ctrl+kt Collapsing properties
Ctrl+k0 Expand All
Ctrl+u Soft Undo
Ctrl+t Word Exchange
Tab Indent Auto-complete
Shift+tab removing indents
Ctrl+shift+↑ and Upstream Interchange
Ctrl+shift+↓ and Downlink Interchange
Ctrl+k Backspace Delete from cursor to beginning of line
Ctrl+enter cursor after insertion
Ctrl+shift+enter Cursor Front Insertion
CTRL+F2 setting bookmarks
F2 Next Bookmark
Required Plugins
Sublime Text 2 installed plug-ins and all the pre-built plugins are all under the packages file and can be accessed directly through "preferences", "Browse pakcages".
The Sublime Text 2 installation plugin is available in two ways:
1) Offline installation, first download the installation package, unzip and put in the Packages folder, restart the sublime can be.
2) online installation, before online installation, you need to install the "Packages control" this package management plug-in, the installation method is:
Select View, display console, and then enter in the box that pops up below:
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 ())
-
Emmet (Tutorial says very detailed, teach you to get started quickly, do not look regret 10,000 years)
-
-
function: Encoding shortcut key, front-end prerequisite
-
-
shortcut keys: TAB
-
-
Introduction: Emmet as an upgraded version of Zen coding, for the front end, but the necessary plug-in, if you are not familiar with it, you can on its official website (http://docs.emmet.io/) to see the specific demo video.
-
-
use: Tutorials-http://docs.emmet.io/cheat-sheet/, http://peters-playground.com/Emmet-Css-Snippets-for-Sublime-Text-2 /
-
Emmet Livestyle
-
-
Features: No refresh sync Modify preview
-
-
Introduction: Chrome and Sublime Text 2 bidirectional modification, no refresh preview.
-
-
use: Google Chrome installs extension Emmet Livestyle, F12 can see one more livestyle option in the console after installation is complete.
-
AngularJS
-
-
function: Angularjs Code auto-Complete
-
Html/css/js prettify
-
-
function: Code formatting
-
-
shortcut key: Ctrl+shift+h
-
Sublimecodeintel
-
-
Features: Code intelligence hints (with custom functions)
-
-
shortcut key: ALT + left mouse button go to function declaration
-
Sublimelinter
-
-
Features: Code detection
-
YUI Compressor
-
-
function: Js/css code compression
-
-
shortcut key: Ctrl+b
-
TortoiseSVN
-
-
Features: SVN client integration
Bower Use tutorial
-
http://blog.csdn.net/chszs/article/details/8907577
Sublime Text 2 Use notes (all right, rookie must SEE)