Find and replace in the current buffer or across the entire project in Atom.
You can open find and replace for each individual buffer by navigating to Find > Find in Buffer or find and replace for an entire project by navigating to Find > Find in Project. To close, press Find in Buffer or Find in Project again, respectively.
Once opened, the first text box is used to find phrases that can also be replaced by content in the second text box. Replace All
will replace all instances of the first text box's text. If using find in project, there is also an additional text box that allows you to specify which directories/files are to be searched.
There are also multiple options available while using find and replace:
.*
- Use RegexAa
- Match case"
- Only in selection (not available for find in project)\b
- Whole word (not available for find in project)
Want to learn more? Check out the Using Atom: Find and Replace section in the Atom flight manual.
Command | Description | Keybinding (Linux) | Keybinding (macOS) | Keybinding (Windows) |
---|---|---|---|---|
project-find:show |
Show the project find and replace dialog | ctrl-shift-f | cmd-shift-f | ctrl-shift-f |
project-find:confirm |
Find the next occurence of the phrase | cmd-enter | ctrl-enter | |
project-find:toggle-regex-option |
Toggle the "regex" option | cmd-alt-/ | ctrl-alt-/ | |
project-find:toggle-case-option |
Toggle the "match case" option | cmd-alt-c | ctrl-alt-c | |
project-find:toggle-whole-word-option |
Toggle the "whold word" option | cmd-alt-w | ctrl-alt-w | |
project-find:replace-all |
Replace all occurences of the phrase | ctrl-enter | cmd-enter | ctrl-enter |
find-and-replace:show |
Show the buffer find and replace dialog | ctrl-f | cmd-f | ctrl-f |
find-and-replace:show-replace |
Toggle the buffer find and replace dialog and focuses the replace text box | ctrl-alt-f | cmd-alt-f | ctrl-alt-f |
find-and-replace:confirm |
Find the next occurence of the phrase | cmd-enter | ctrl-enter | |
find-and-replace:toggle-regex-option |
Toggle the "regex" option | cmd-alt-/ | ctrl-alt-/ | |
find-and-replace:toggle-case-option |
Toggle the "match case" option | cmd-alt-c | ctrl-alt-c | |
find-and-replace:toggle-selection-option |
Toggle the "obly in selection" option | cmd-alt-s | ctrl-alt-s | |
find-and-replace:toggle-whole-word-option |
Toggle the "whold word" option | cmd-alt-w | ctrl-alt-s | |
find-and-replace:find-all |
Find all occurences of the pharase | ctrl-enter | cmd-enter | ctrl-enter |
find-and-replace:find-next |
Find the next occurence of the phrase | f3 | cmd-g | f3 |
find-and-replace:find-previous |
Find the previous occurence of the phrase | shift-f3 | cmd-shift-g | shift-f3 |
find-and-replace:find-next-selected |
Find the next occurence of the phrase selected | ctrl-f3 | cmd-f3 | ctrl-f3 |
find-and-replace:find-previous-selected |
Find the previous occurence of the phrase selected | ctrl-shift-f3 | cmd-shift-f3 | ctrl-shift-f3 |
find-and-replace:select-all |
Select all occurences of the phrase | alt-f3 | cmd-ctrl-g | alt-f3 |
find-and-replace:select-next |
Select the next occurence of the phrase | ctrl-d | cmd-d | ctrl-d |
find-and-replace:select-undo |
Undo the last selection | ctrl-u | cmd-u | ctrl-u |
find-and-replace:select-skip |
Skip the current selection | ctrl-k ctrl-d | cmd-k cmd-u | ctrl-k ctrl-u |
find-and-replace:focus-next |
Focus the next text box in the find and replace dialog | tab | tab | tab |
find-and-replace:focus-previous |
Focus the previous text box in the find and replace dialog | shift-tab | shift-tab | shift-tab |
find-and-replace:replace-all |
Replace all occurences of the phrase | ctrl-enter | cmd-enter | ctrl-enter |
Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, Atom's contributing guide will help get you started while the guide for contributing to packages has some extra information.
MIT License. See the license for more details.