Wing IDE provides several different interfaces for searching your code. Which you use depends on your task.
A quick way to search through the current editor is to enter your search string in the area provided in the toolbar:
If you enter only lower case the search will be case-insensitive. Entering one or more upper-case letter causes the search to become case-sensitive.
Try this now in example1.py: Type GetItem in the toolbar search area and Wing will immediately, starting with the first letter typed, search for matching text in the editor. Press the Enter key to move on to the next match, wrapping around to the top of the file if necessary.
Toolbar-based searches always go forward (downward) in the file from the current cursor position.
The Search tool provides a familiar GUI-based search and replace tool for operating on the current editor. Key bindings for operations on this tool are given in the Search and Replace group in the Edit menu.
Searches may span the whole file or be constrained to the current selection, can be case sensitive or insensitive, and may optionally be constrained to matching only whole words.
By default, searching is incremental while you type your search string. To disable this, uncheck Incremental in the Options menu.
When the Show Replace item in Options is activated, Wing will show an area for entering a replace string and add Replace and Replace All buttons to the Search tool:
Try replacing example1.py with search string PrintAs and replace string OutputAs.
Select the first result match and then Replace repeatedly. One search match will be replaced at a time. Search will occur again after each replace automatically unless you turn off the Find After Replace option. Changes can be undone in the editor, one at a time. Do this now to avoid saving this replace operation.
Next, try Replace All instead. Wing will simply replace all occurrences in the file at the same time. When this is done, a single undo in the editor will cancel the entire replace operation.