Using Find and Replace

Quickly find specific text within CDS markup or expression editor, and, optionally, replace it with some other text.

Implementation:

  1. Open the intended editor.
  2. Use Ctrl+F keyboard shortcut to open the Find and Replace tool.
  3. Type a plain text string in the Find What field.
  4. Click Find Next to search for the next instance of the specified text string.
  5. (Optional) To replace the chosen text with something else, enter the new text in the Replace With field.
  6. (Optional) Click Replace.
  7. (Optional) Click Replace All to replace all instances of the text in your markup.
  8. (Optional) Click Mark All to apply a highlight to all instances of the text in your markup.
  9. (Optional) Tick the Match Case check box if you want your results to match the search string's text and case.
  10. (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.
  11. (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.
  12. (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.
  13. (Optional) Tick the Search In Selection check box to restrict the search to any text that is currently selected.
  14. (Optional) Tick the Add Bookmark check box and click Mark All to apply a bookmark to all instances of the text in your markup.
  15. (Optional) Tick the Use a More Complex Search Pattern check box to activate the drop-down menu, underneath the check box.
  16. (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.
  17. (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.
  18. (Complex Search Pattern only/Optional) Click to open a list of common grammar patterns you can use to build complex search strings.
  19. Click Close to return to the editor.