1
1
Fork 0
AtomicKotlinCourse/Programming Basics/Repetition with while/Exercise 4/task.md

13 lines
1.3 KiB
Markdown
Raw Normal View History

## Mastering the IDE: Moving the Caret
You can move the caret over the words. The same works for selecting text:
| Operation | Shortcut | Description |
|--------------------------------------|--------------------------------------------------------------------------|---------------------------------------------------|
| Move to Next Word | <span class="shortcut">&shortcut:EditorNextWord;</span> | Move the caret to the next word. |
| Move to Previous Word | <span class="shortcut">&shortcut:EditorPreviousWord;</span> | Move the caret to the previous word. |
| Move to Next Word with Selection | <span class="shortcut">&shortcut:EditorNextWordWithSelection;</span> | Move the caret to the next word, selecting it. |
| Move to Previous Word with Selection | <span class="shortcut">&shortcut:EditorPreviousWordWithSelection;</span> | Move the caret to the previous word, selecting it.|
Select `getFooResult()` by moving the caret over words and extract it into a
`val foo` by hand. Next we'll discuss how to extract a variable automatically.