826 B
826 B
Mastering the IDE: Extend Selection
When you apply refactorings like Extract Property
,
you need to select the expression that you'd like to extract, which might be
quite complicated.
The Extend Selection
action accessible with 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;.
Try putting the caret on 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.