1
1
Fork 0
AtomicKotlinCourse/Programming Basics/String Templates/Exercise 4/task.md

23 lines
1.0 KiB
Markdown
Raw Normal View History

## Mastering the IDE: Search and Replace
You can search and then replace any text in a file.
Press <span class="shortcut">&shortcut:Find;</span> for `Find` and
<span class="shortcut">&shortcut:Replace;</span> for `Replace`.
Alternatively, you can choose <span class="control">`Edit`</span> menu item
from the application menu, then choose
<span class="control">`Find`</span> from the list below, and then
<span class="control">`Find...`</span> one more time.
By choosing <span class="control">`Replace...`</span>
instead of <span class="control">`Find...`</span> you can specify the
replacement string.
Replace all the `foo` expressions in the file with `bar`.
Note that you can press <span class="shortcut">&shortcut:Find;</span>,
start typing, then press <span class="shortcut">&shortcut:Replace;</span>
and the history is preserved.
Pressing <span class="shortcut">&shortcut:Replace;</span> adds field,
where you can type the replace string.
Click on the small arrow to the left of the typing window to see the search history.