829 B
829 B
Mastering the IDE: Extend Selection
When you apply refactorings like Extract Property
,
you must select the expression that you'd like to extract. This expression might be
quite complicated.
The Extend Selection
action accessed using the
&shortcut:EditorSelectWord; shortcut is very
helpful here: it selects the outside expression, increasing the selection by
each step. The reverse action is called
Shrink selection
and is accessible by
&shortcut:EditorUnSelectWord;.
Put the caret on the line println("Incorrect input: $x should be positive")
and extend and shrink the selection to see how it works.
Continue to extend the selection until the whole file is selected.