Search Wizard

A wizard for searching

Overview

The Search Wizard is a powerful tool for locating text across files in the workspace, specific resources, or entire projects. It supports various search parameters and options to refine the search results, making it an essential tool for navigating and managing large codebases.

Sections

Tabs

Different tabs for various types of searches:

  • File Search: Searches for text within files.

  • Git Search: Searches within Git repositories.

  • Java Search: Searches specifically within Java code.

  • JavaScript Search: Searches specifically within JavaScript code.

Fields and Options

Containing Text

Input field where you can type the text or pattern you are looking for. Supports case-sensitive searches, regular expressions, and whole word matching.

File Name Patterns

Specify file name patterns to limit the search to certain files. Patterns should be separated by commas.

Search In

Options to include derived resources and binary files in the search.

Scope

Define the scope of the search:

  • Workspace: Search across the entire workspace.

  • Selected resources: Search within selected resources.

  • Enclosing projects: Search within enclosing projects.

  • Files opened in editors: Search within files currently opened in editors.

  • Working set: Search within a specific working set.

Buttons

Here are the available buttons:

  • Customize: Opens the customization dialog to select which search tabs to display.

  • Replace: Opens the replace dialog to replace occurrences of the search pattern with a specified replacement.

  • Search: Starts the search based on the specified parameters.

  • Cancel: Closes the search dialog without performing a search.

Here are the steps for using Search:

  1. Open the Search Dialog: Access it from the Servoy Developer Search menu or through a keyboard shortcut (Ctrl+H).

  2. Enter Search Parameters:

    • Type the text or pattern you are looking for in the "Containing text" field.

    • Specify file name patterns to limit the search scope.

    • Choose to include derived resources and binary files if needed.

  3. Define the Scope:

    • Select the appropriate scope for the search: Workspace, Selected resources, Enclosing projects, Files opened in editors, or Working set.

  4. Use Search Tabs:

    • Select the appropriate tab for the type of search: File Search, Git Search, Java Search, or JavaScript Search.

  5. Customize Search Tabs, if needed:

    • Click the Customize button to open the Search Page Selection dialog and choose which tabs to display.

  6. Perform the Search:

    • Click the Search button to start the search. The results will be displayed in the Search view.

Using Replace

Here are the steps for using Replace:

  1. Open the Replace Dialog: After performing a search, click the Replace button to open the Replace Text Matches dialog.

  2. Enter Replace Parameters:

    • Type the text to replace in the "Replace" field.

    • Type the replacement text in the "With" field.

    • Optionally, use regular expressions for the replacement.

  3. Preview Changes:

    • Click the Preview button to see the changes before applying them.

  4. Apply Changes:

    • Click OK to apply the changes or Cancel to close the dialog without making any changes.

Last updated