Files
eiffel-org/documentation/current/eiffelstudio/eiffelstudio-reference/browsing-tools/search-tool.wiki
halw 50c22b979e Author:halw
Date:2009-07-08T18:30:13.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@252 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
2009-07-17 16:26:54 +00:00

43 lines
2.4 KiB
Plaintext

[[Property:title|Search tool]]
[[Property:weight|6]]
[[Property:uuid|4d0cc8b3-2ffd-42d4-7855-672fa0c11cf8]]
==Description and usage==
EiffelStudio includes a search tool which allows you to look for a word or a pattern in the editor, the class tool, the feature tool or the output tool, and to replace it by another word if you want. It is located in the left part of the development window, like the cluster tool or the favorites for instance.
To make it appear, if it is not displayed, click on the search icon [[Image:tool-search-icon]] or choose the '''Search''' entry in the '''Edit''' menu.
===The Search panel===
[[Image:search-tool]]
Fig. 1: Search panel
The search panel has two tabs. The '''search tab''' allows you to define how and for what strings and patterns you want to search (or search and replace). The '''scope tab''' allows you to define the limits of your search.
===The Search tab===
On the "Search" tab of the search panel, you will find two combo boxes, labeled "Search for:" and "Replace with:". These are used to enter the string or pattern for which you want to search and the word or phrase, if any, which you want the editor to use to replace matches resulting from the search. <br/>
There are also buttons that control whether you want to search, to replace the most recently found match, or replace all matches.
===The options group===
There are five search options, each of them represented by a check box:
* Match case: If this option is selected, the search will be case-sensitive, which means that if you search for "example", the tool will highlight "example" but not "EXAMPLE" or "Example", as there are no capital letters in the searched pattern.
* Whole word: If this option is selected, the tool will look for isolated words. A word is isolated if it is surrounded by spaces or if it is at the beginning or the end of a line.
* Use regular expressions: You can enter a regular expression as a pattern for matching.
* Search backwards: If this option is selected, the tool will highlight the previous occurrence of the searched pattern instead of the next occurrence when you press the "Search" button.
{{note|If the search tool hits one end of the text, it will automatically continue from the other end. }}
{{seealso|The [[Search functionality]] part of the EiffelStudio Editor section to learn keyboard shortcuts and menu entries to launch searches without using the search tool directly. }}