Sublime Text 2 ed ...

Quick search for files in the current project

hot key:CTRL + p

Sublime Text 2 editor practical skills Daquan - PHP web development - a day after the latest blog Top blog

And there are skills, such as want to search for the file name and path open:

routes/user/messages.js
Simply enter in the window: rum or r/u/m look at the results is not so cool?

Sublime Text 2 editor practical skills Daquan - PHP web development - a day after the latest blog Top blog

Add a comment ? Back ? 2012-03-30 05:15

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.

3 comment ? Back ? 2012-03-26 13:20

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

A comment ? Back ? 2012-03-24 19:13

Multiple compound selected text


Ever tried to select text such as the following figure?

Sublime Text 2 editor practical skills Daquan - PHP web development - a day after the latest blog Top blog


Operates as follows


  1. First, select the first paragraph text
  2. Then press the CTRLkey, the second segment need to select with the mouse to select text
  3. 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 2experience is superb.

2 comments ? Back ? 2012-03-14 08:32

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 Packagesdirectory 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 + dwill 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

Sublime Text 2 editor practical skills Daquan - PHP web development - a day after the latest blog Top blog

The results are as follows:

Sublime Text 2 editor practical skills Daquan - PHP web development - a day after the latest blog Top blog

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 + pEnter

Sublime Text 2 editor practical skills Daquan - PHP web development - a day after the latest blog Top blog


Quickly jump to a function of the file


hot key:CTRL + r

Or CTRL + penter

Sublime Text 2 editor practical skills Daquan - PHP web development - a day after the latest blog Top blog

The method of mounting plug Sublime Text 2


  1. Press Ctrl + `to bring up the console
  2. 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())
  3. Restart Sublime Text 2.
  4. 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:


  1. Press Ctrl + Shift + P recall command panel
  2. Type install to bring up the Install Package option and press Enter, and then you want to install the plug-in list.
Published 117 original articles · won praise 4 · views 80000 +

Guess you like

Origin blog.csdn.net/qq_36266449/article/details/78194634