<< Click to Display Table of Contents >> Navigation: Interface > Search menu |
Hotkey: Ctrl+F
Choose Search->Find to display the Find Text dialog box (fig.1)
Fig.1 Find text dialog box
Find Text dialog box
Here you may specify text you want to locate and to set options that affect the search. Find locates the line of code containing the first occurrence of the string and highlights it.
Dialog box options
Text to find - Enter a search string or click the down arrow next to the input box to select from a list of previously entered search strings.
Options - Specified attributes for the search string
•Case sensitive - Differentiates uppercase from lowercase when performing a search;
•Whole words only - Searches for words only. (With this option off, the search string might be found within longer words.).
Direction - Direction to search, starting from the current cursor position
•Forward - From the current position to the end of the file. Forward is the default;
•Backward - From the current position to the beginning of the file.
Scope - How much of the file is searched
•Global - Searches the entire file in the direction specified by the Direction setting. Global is the default scope.
•Selected text - Searches only the selected text in the direction specified by the Direction setting. You can use the mouse or block commands to select a block of text.
Origin - Where the search starts
•From cursor - The search starts at the cursor's current position, and then proceeds either forward to the end of the scope, or backward to the beginning of the scope depending on the Direction setting. From cursor is the default Origin setting.
•Entire scope - The search covers either the entire block of selected text or the entire file (no matter where the cursor is in the file), depending upon the Scope options.
Hotkey: F3
Repeat the last search using the same options.
Hotkey: Ctrl+R
Choose Search->Replace to display the Replace Text dialog box (fig.2)
Fig.2 Replace text dialog box
Replace Text dialog box
Use this dialog box to specify text you want to search for and then replace with other text (or with nothing). Most components of the Replace Text dialog box are identical to those in the Find Text dialog box.
Text to find - Enter a search string. To select from a list of previously entered search strings, click the down arrow next to the input box.
Replace with - Enter the replacement string. To select from a list of previously entered search strings, click the down arrow next to the input box. To replace the text with nothing, leave this input box blank.
Prompt on replace - Prompts you before replacing each occurrence of the search string. When Prompt on replace is off, the Code editor automatically replaces the search string.
Replace All - Click Replace All to replace every occurrence of the search string. If you check Prompt on replace, the Confirm dialog box appears on each occurrence of the search string.
Hotkey: Ctrl+T
From the Search menu select Next tool change. The file will be scanned forwards for a tool change (M06), and the cursor will be re-positioned at that line.
Hotkey: Ctrl+Shift+T
From the Search menu select Next tool change. The file will be scanned backwards for a tool change (M06), and the cursor will be re-positioned at that line.