2019-10-09 14:04:45 +03:00
|
|
|
## Mastering the IDE: Search and Replace
|
2019-07-15 17:01:04 +03:00
|
|
|
|
2020-10-11 21:40:34 +03:00
|
|
|
You can search for and replace any text in a file.
|
2019-10-23 11:44:48 +03:00
|
|
|
Press <span class="shortcut">&shortcut:Find;</span> for `Find` and
|
2019-10-09 14:04:45 +03:00
|
|
|
<span class="shortcut">&shortcut:Replace;</span> for `Replace`.
|
2019-07-15 17:01:04 +03:00
|
|
|
|
2020-10-11 21:40:34 +03:00
|
|
|
You can also choose <span class="control">`Edit`</span> from the application
|
|
|
|
menu, then choose <span class="control">`Find`</span> from the list below, 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 a replacement string.
|
2019-07-15 17:01:04 +03:00
|
|
|
|
2020-10-11 21:40:34 +03:00
|
|
|
Replace all instances of `foo` in the file with `bar`.
|
2019-07-15 17:01:04 +03:00
|
|
|
|
2019-10-23 11:44:48 +03:00
|
|
|
Note that you can press <span class="shortcut">&shortcut:Find;</span>,
|
2019-10-09 14:04:45 +03:00
|
|
|
start typing, then press <span class="shortcut">&shortcut:Replace;</span>
|
|
|
|
and the history is preserved.
|
2020-10-11 21:40:34 +03:00
|
|
|
Pressing <span class="shortcut">&shortcut:Replace;</span> adds a field
|
2019-10-23 11:44:48 +03:00
|
|
|
where you can type the replace string.
|
2019-10-09 14:04:45 +03:00
|
|
|
|
2020-10-11 21:40:34 +03:00
|
|
|
Click on the small arrow to the left of the typing window to see the search history.
|