Searching and Replacing Text in Files

You can use the Find and Replace in Files window to perform search and replace operations. To open this window press CTRL+F or CTRL+H, then switch to Find in Files or Replace in Files mode.

Searching and replacing text in files has following peculiarities:

  • You can enter disc folder as search location or even create and use named folder sets.

  • You can only find all occurrences, you cannot use Find Next.

To create a named folder set:

  1. In the Find and Replace in Files window, click the Button Ellipsis button next to the Look In box.

  2. Enter the folder set name.

  3. Edit the folder list with Left Arrow and Right Arrow buttons.
  4. Click Apply. Now you may use this folder set in the Look In box.

To delete named folder set, click the Button Ellipsis button next to the Look In box, enter the folder set name, and Delete.

To search in files:

  1. Press CTRL+F and switch to Find in Files mode if necessary.

  2. In the Look in box, select needed location or enter folder path or name of the named folder set.

  3. In the Find what text box, enter the text you intend to search for.

  4. Select additional search options to increase the accuracy of the search.

  5. You may specify the file mask for searching in the Look at these file types box.

  6. If needed, customize the Result options.

  7. Click the Find All button.

After search is finished, all results are displayed in the Find Results window. You may double-click on matches to navigate to them.

To replace in files:

  1. Press CTRL+H and switch to Replace in Files mode if necessary.

  2. In the Look in box, select needed location or enter folder path or name of the named folder set.

  3. In the Find what text box, enter the text you intend to search for.

  4. Select additional search options to increase the accuracy of the search.

  5. If needed, customize the Result options. Select the Keep modified files open after Replace All check box if you want to be able to undo changes.

  6. You may specify the file mask for replacing in the Look at these file types box.

  7. In the Replace with text box, enter the text with which you intend to replace the search text.

  8. Click Replace and continue clicking Replace until the last match in the last file has been replaced. Use Find Next to skip a match you do not want to replace.

You may click Replace All to replace all matches. A message box appears, listing the total number of replacements. The Replace All command replaces all search matches, including those you have skipped with the Find Next button. To reverse Replace All, choose Undo from the Edit menu in each changed file before closing any of the files.

Want to Find out More?

Overview

Overview

Take a quick tour to learn all about the key benefits delivered by dbForge Studio for PostgreSQL.
All Features

All features

Get acquainted with the rich features and capabilities of the Studio in less than 5 minutes.
Request a demo

Request a demo

If you consider employing the Studio for your business, request a demo to see it in action.
Ready to start using dbForge Studio for PostgreSQL?