# Searching or finding text within a file

Tip: Before you do a Search operation in a structured text editor, save the file you are searching. The search function works from the most recently saved version of the file rather than from the contents that you see in the editor area. You do not need to save your file before you do a Find/Replace operation.
Each structured text editor provides two ways to locate a text string in the file you are editing and optionally replace it with another string:

Find/Replace
  Lets you locate text in the file currently being edited.
Search
  Lets you locate text in files that have been saved to your workspace.

To locate and optionally replace text, select one of the following menu paths:

Edit > Find/Replace (or Ctrl+F) This option is self-explanatory.
Related concepts
Structured text editors for markup languages
Related tasks
Editing text coded in markup languages - overview