22 lines
1006 B
Markdown
22 lines
1006 B
Markdown
## Mastering the IDE: Search and Replace
|
|
|
|
You can search for and replace any text in a file.
|
|
Press <span class="shortcut">&shortcut:Find;</span> for `Find` and
|
|
<span class="shortcut">&shortcut:Replace;</span> for `Replace`.
|
|
|
|
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.
|
|
|
|
Replace all instances of `foo` 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 a 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.
|