Difference between revisions of "IDE Window: Find in files"

From Free Pascal wiki
Jump to navigationJump to search
 
(10 intermediate revisions by 4 users not shown)
Line 10: Line 10:
 
== Options ==
 
== Options ==
  
* Case sensitive - distinguish lower and uppercase (for example a and A)
+
* Case sensitive - distinguish lower and uppercase (for example 'a' and 'A')
* Whole words only - Found text must start at a word start and end at a word end
+
* Whole words only - found text must start and end at a word boundary (position between word-chars and non-word-chars)
* Regular Expression - see [[IDE regular expressions]].
+
* Regular expression - treat texts as [[IDE regular expressions]]
 +
* Multiline pattern - for reg-expressions, activates option "dot means also newlines"
  
 
== Where ==
 
== Where ==
  
 
* search all files in project - search in all files, that belong to the current project
 
* search all files in project - search in all files, that belong to the current project
* search all open files - search in all files open in the source editor
+
* search all open files - search in all files opened in the source editor
* search in directories - search in a directory
+
* search in directories - search in folder(s) specified in option below
 +
* search in the current file
  
 
== Directory options ==
 
== Directory options ==
  
* Directory - choose here the directory, where the search starts. Use the "..." button to the right to open a dialog to choose a directory.
+
* Directory - folder paths, where the search starts. Allowed several paths separated by ";", trailing slashes ignored. Use the "..." button to the right to open a dialog to choose a directory.
* File mask - define a mask for the files, that are searched. Only text files will be searched. Examples for masks are: "*.pas" or "*.pas;*.pp;*.inc". The combobox contain the last searched file masks.
+
* File mask - defines mask(s) for the files, that are searched. Only text files will be searched. Examples for masks are: "*.pas" or "*.pas;*.pp;*.inc". The combobox contains last entered masks.
* Include sub directories - enabled this to search recursively in all sub directories.
+
* Include sub directories - allows to search in all subfolders.

Latest revision as of 11:22, 3 July 2015

Deutsch (de) English (en) suomi (fi) français (fr)

This dialog allows to setup search and replace patterns for searching in multiple files.

Setup the options and click the Find button at the bottom to start the search. A window will open showing the progress. It contains a button to abort the search, if it takes too long. When all files are searched the Search Results window will open.

  • Text to find
  • Replace - check this to enable the replace text field.

Options

  • Case sensitive - distinguish lower and uppercase (for example 'a' and 'A')
  • Whole words only - found text must start and end at a word boundary (position between word-chars and non-word-chars)
  • Regular expression - treat texts as IDE regular expressions
  • Multiline pattern - for reg-expressions, activates option "dot means also newlines"

Where

  • search all files in project - search in all files, that belong to the current project
  • search all open files - search in all files opened in the source editor
  • search in directories - search in folder(s) specified in option below
  • search in the current file

Directory options

  • Directory - folder paths, where the search starts. Allowed several paths separated by ";", trailing slashes ignored. Use the "..." button to the right to open a dialog to choose a directory.
  • File mask - defines mask(s) for the files, that are searched. Only text files will be searched. Examples for masks are: "*.pas" or "*.pas;*.pp;*.inc". The combobox contains last entered masks.
  • Include sub directories - allows to search in all subfolders.