MPS 2019.3 Help

Finding and replacing text in a file

MPS lets you find and replace text strings in the active editor.

Search through the current file

  1. From the main menu, choose Edit | Find | Find, or press Ctrl+F. The search pane appears at the top of the active editor.

  2. If necessary, specify the search options.

  3. In the search field, start typing the search string:

    Find text

    As you type, the first occurrence of the search string after the current cursor position is selected; the other occurrences are highlighted in the editor. In addition, the matching occurrences are marked in the scrollbar with stripes.

  4. To search for a multi-line fragment, click Multi-line search in the search box or press N/A.

  5. Explore the search results.

Working with search results

  • To initiate a new search, do one of the following (depending on the current focus):

    • If the editor has the focus, press Ctrl+F.

    • If the search field has the focus, press Ctrl+A

    In both cases, the existing search string will be selected, and you can start typing a new one.

  • To jump between occurrences, do one of the following:

    • Press Shift+F3 (jump to previous selection) or F3 (jump to next selection).

    • Use the Previous occurrence or Next occurrence buttons in the Search pane.

    • Click the gutter stripes.

  • The search pane shows the number of found occurrences. If no matches are found, the search pane becomes red.

    Search Results
  • Use the recent search history: with the search pane already open, click Find to show the list of recent entries.

  • To cancel the operation and close the pane, press Escape.

  • Use multiple selection (multiselection). For example, if a certain string has been highlighted as a search result, it is possible to add an occurrence of this string to multiple selection by clicking Add multi cater Alt+J, delete an occurrence from multiple selection using Remove selection Shift+Alt+J, or add all found occurrences to multiple selection using Select all occurrences Ctrl+Shift+Alt+J.

Search options

Item

Description

Find

Click this button to show the history of the recent entries.

Clear

Click this button to clear the search field.

Previous occurrence Next occurrence

Click these buttons to navigate through the occurrences of the search string.

Add to multiple selection

Click this button to add the next found occurrence to a multiple selection.

Remove selection

Click this button to remove the found occurrence from a multiple selection.

Select all occurrences

Click this button to create a selection that contains all the found occurrences.

Find all

Click this button to show search results in the Find tool window.

Match Case

If this checkbox is selected, MPS will distinguish between upper and lowercase letters while searching.

Words

If this checkbox is selected, MPS will search for whole words only, that is, for character strings separated with spaces, tabs, punctuation, or special characters.
This checkbox is disabled if the Regular expressions checkbox is selected.

Last modified: 28 February 2020