hot key:CTRL + p
And there are skills, such as want to search for the file name and path open:
routes/user/messages.jsSimply enter in the window:
rum
or
r/u/m
look at the results is not so cool?
Quick Notes and uncommented
Note shortcuts inline CTRL + /
, a block comment is selected interval, shortcutCTRL + SHIFT + /
Uncomment line comment whether or block comments, shortcuts are CTRL + /
, you only need the mouse cursor to the comment in the section.
Merge Rows
Looks like this is not what skills, application scenarios, and you now want to merge the current line and the next line to line, shortcuts CTRL + J
Multiple compound selected text
Ever tried to select text such as the following figure?
Operates as follows
- First, select the first paragraph text
- Then press the
CTRL
key, the second segment need to select with the mouse to select text - Repeat continue to do so
There is also a good place, that is, after the election finished, press [
to try? Is not very considerate, you can also press the single or double quotation marks, and so on.
Overall, the Sublime Text 2
experience is superb.
Column selection mode
In two ways:
1. Right mouse button + shift
2.Ctlr + Shift + down arrow
Reference: http://www.sublimetext.com/docs/2/column_selection.html
But this did not understand:
Add to selection: Ctrl
Subtract from selection: Alt
Let Sublime Text 2 Jade syntax highlighting support
$ git clone git://github.com/miksago/jade-tmbundle Jade $ cd Jade $ zip -r Jade.sublime-package *At this point it will generate a file in the current directory:
Jade.sublime-package
The files are copied to the root directory Sublime Text 2 Pristine Packages
directory to go on it.
Text selection
The process of writing the code will inevitably have to often select some characters common is drag the mouse to select and then delete or how how.
Sublime Text 2, when the cursor is in a word, press the shortcut key: CTRL + d
will select the character blocks, while the presence of the same characters in the file has tips.
Select the intervals content
Select now the following example code fragment [
and ]
content between:
[ A , b , c , d , csser ]The cursor anywhere in the middle brackets, shortcut keys: CTRL + SHIFT + m, support this selection method
[
]
{
}
(
)
and the like symbols.
Search the contents of all files in the specified directory
hot key:CTRL + SHIFT + f
The results are as follows:
Double-click the file path or keywords will automatically jump to a specified location to open the file.
Quick search for content in the current file
Shortcut: CTRL + p
Enter#
Quickly jump to a function of the file
hot key:CTRL + r
Or CTRL + p
enter@
The method of mounting plug Sublime Text 2
- Press Ctrl + `to bring up the console
- Paste the following code in the end section and the transport command line:
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(' ',' ')).read())
- Restart Sublime Text 2.
- If you see this one in the package control Perferences-> package settings, the installation was successful.
The method of installation with plug-in Package Control:
- Press Ctrl + Shift + P recall command panel
- Type install to bring up the Install Package option and press Enter, and then you want to install the plug-in list.