Using Find and Replace
Quickly find specific text within CDS markup or expression editor, and, optionally, replace it with some other text.
Implementation:
- Open the intended editor.
- Use Ctrl+F keyboard shortcut to open the Find and Replace tool.
- Type a plain text string in the Find What field.
- Click Find Next to search for the next instance of the specified text string.
- (Optional) To replace the chosen text with something else, enter the new text in the Replace With field.
- (Optional) Click Replace.
- (Optional) Click Replace All to replace all instances of the text in your markup.
- (Optional) Click Mark All to apply a highlight to all instances of the text in your markup.
- (Optional) Tick the Match Case check box if you want your results to match the search string's text and case.
- (Optional) Tick the Match Whole Word check box if you want your search results to only display text that appears as a distinct word in the markup.
- (Optional) Tick the Search Backwards check box to enable the search option to move in the opposite direction in the markup, returning the previous instance of the search string rather than the next.
- (Optional) Tick the Search Hidden Text check box to find matches within collapsed sections of the text. Otherwise these sections will not be included in the search.
- (Optional) Tick the Search In Selection check box to restrict the search to any text that is currently selected.
- (Optional) Tick the Add Bookmark check box and click Mark All to apply a bookmark to all instances of the text in your markup.
- (Optional) Tick the Use a More Complex Search Pattern check box to activate the drop-down menu, underneath the check box.
- (Optional) Select the Regular Expressions option in the Complex Search Pattern drop-down menu to use a RegEx pattern for your search. For more information on using RegEx, refer to this MSDN article.
- (Optional) Select the Wildcards option in the Complex Search Pattern drop-down menu to use wildcard symbols in your search. For more information on wildcard searches, refer to this MSDN article.
- (Complex Search Pattern only/Optional) Click to open a list of common grammar patterns you can use to build complex search strings.
- Click Close to return to the editor.