欢迎各位兄弟 发布技术文章
这里的技术是共享的
The basic way to select a piece of text is to extend the selection with the mouse cursor. WebStorm, as a keyboard-centric IDE, suggests to use navigation keys to make selections. You can opt to select pieces of text by lines, or select rectangular fragments in the column mode, extend and shrink the selection, use multiselection, and sticky selection.
In this section:
To select the entire text in the current editor tab, do one of the following:
To select text from the current caret position to the beginning/end of the current word:
To select text from the caret position to the beginning/end of the current line:
To select text from the current caret position to the top/bottom of the screen:
To extend selection from the word at caret to the piece of code the caret is contained in, do one of the following:
While extending selection, keep in mind that:
To shrink selection in the reverse order (from the outermost container to the word where the caret currently resides), do one of the following:
To select multiple words:
WebStorm also makes it possible to select multiple fragment of text. To do that, press Alt Shift+Altand drag the mouse pointer:
To select multiple rectangular fragments of text, press Ctrl+Alt Ctrl+Shift+Alt and drag the mouse pointer:
To toggle between the line and the column selection modes, do one of the following:
To make selection in the Column Selection Mode, do one of the following:
When you perform various code refactorings that involve selecting an expression , WebStorm can help you select the expression of interest. This feature is known as smart expression selection.
The chapter for the Extract Variable refactoring is just an example. The smart expression selection feature, in fact, is available in all the refactorings that start with selecting an expression.
To use smart expression selection, follow these steps:
To toggle sticky selection, do one of the following: