Find & Replace
To find and replace text
- On the Search menu, click Replace.
- In the Search for box, enter the text that you want to replace.
- In the Replace with box, enter the replacement text.
- Select any other options that you want.
- Click here to find more about options.
- Click Find Next, Replace, or Replace All.
Find next or previous
You can quickly navigate to next and previous occurrence of your search text.
To find next occurrence
- On the Search menu, click Find Next or press F3.
To find previous occurrence
- On the Search menu, click Find Previous or press Ctrl+F3.
Note
- You can also click Find Next
or Find Previous on the toolbar.
Find matching bracket
To find matching bracket
- On the Search menu, click Match Bracket.
Find/Replace window
Find/Replace window allows to search for and replace text.
- Search for: Specifies text to be searched.
- Replace with: Specifies replacement text.
- Find Next: Finds specified text.
- Find All: Finds all occurrences of search text and displays the search results as a list.
- Replace: Replaces search text with replacement text and finds next occurrence of search text.
- Replace All: Replaces all occurrences of search text with replacement text.
- Multi Line: Allows to switch between single-line and multi-line modes.
Options
- Case sensitive: Searches only for occurrences that match the combination of uppercase and lowercase characters you enter in the Search for box.
- Whole words only: Searches only for whole words rather than matching the text you enter in the Search for box as it occurs within words.
- Regular expressions: Enables regular expression search.
- Preserve case: Preserves the character case of the text to be replaced. For example, if the search text is hello and replacement text is world then Hello is replaced with World and HELLO with WORLD.
Direction
- Forward: Enable to search text from top to bottom.
- Backward: Enable to search text from bottom to top.
Origin
- From cursor: Enable to search text starting from cursor position .
- Entire scope: Enable to start search from the very beginning.
Scope
- Current document: Searches through all text.
- All open documents: Searches through all open documents.
- Selected text: Searches only through selected text.
Find/Replace in Files window
Find in Files window allows to search for text in files on your drive.
- Search for: Specifies text to be searched.
- Replace with: Specifies replacement text.
- Look in: Specifies folder to look for files.
- Look in subfolders: Indicates that the search includes files located in folders that are within the folders specified in the Look in box.
- Files of type: Specifies the type of files to be included in search. This field should contain valid file masks, separated by ;
- Find: Finds all occurrences of search text.
- Replace: Finds all occurrences of search text and allows to replace them one by one.
- Replace All: Relpaces all occurrences of search text with replacement text.
- Browse: Displays Browse for Folder dialog box which allows to pick Look in folder rather then enter it from keyboard.
- Close: Closes Find in Files window and cancels current search (if any).
- Close when search complete: Indicates that when search operation is complete, Find in Files window should close automatically.
Options
- Case sensitive: Searches only for occurrences that match the combination of uppercase and lowercase characters you enter in the Search for box.
- Whole words only: Searches only for whole words rather than matching the text you enter in the Search for box as it occurs within words.
- Regular expressions: Enables regular expression search.
- Preserve case: Indicates that during replace operation, replacement text should be modified to match the capitalization and case of found string. Table below displays an example of how this option makes the replace function operate. In this example the search string is software and the replacement string is program.
| Found text |
Inserted text |
| software |
program |
| Software |
Program |
| SOFTWARE |
PROGRAM |
- Display detailed results: Indicates that search results should list position of each occurrence of search string. When this option is not set, search results display just file names.
|