Wing IDE provides several different interfaces for searching your code. Which you use depends on your task.

Search Tool

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.

search.png

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.

Replacing

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:

search-replace.png

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.