2019-10-09 14:04:45 +03:00
|
|
|
## Mastering the IDE: Search and Replace
|
2019-07-15 17:01:04 +03:00
|
|
|
|
2019-10-09 14:04:45 +03:00
|
|
|
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`.
|
2019-07-15 17:01:04 +03:00
|
|
|
|
2019-10-09 14:04:45 +03:00
|
|
|
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.
|
2019-07-15 17:01:04 +03:00
|
|
|
|
2019-10-09 14:04:45 +03:00
|
|
|
Replace all the `foo` expressions in the file with `bar`.
|
2019-07-15 17:01:04 +03:00
|
|
|
|
2019-10-09 14:04:45 +03:00
|
|
|
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.
|