2019-06-04 Sublime Text selection

Select (Selecting)

One of the highlights of Sublime Text supports multiple selection - select multiple regions, and at the same time for editing.

Ctrl + D to select the current word under the cursor and highlight all occurrences of the word, again Ctrl + D to select the next position word appearing in the multiple choice of words in the process, use Ctrl + K were skipped, use Ctrl + U rollback, use Esc to exit the multi edit.

Multiple choice of words is a great scenario would be to rename - making the code more clean and tidy. Although Sublime Text can not be automatically renamed so as IDE (such as Eclipse), but we can be edited by multiple multiple choice of words + intuitive and easy to rename:

Sometimes we need to be for all rows of an area edit, Ctrl + Shift + L can break up the currently selected area, and then edit:

There are broken up naturally merge, Ctrl + J can put the current selection as a single line:

 

Guess you like

Origin www.cnblogs.com/wbly2019/p/10973314.html