|
The feature allows you to find all the occurrences of a string in the source code or text files of your project(s). There are several improvements in this feature over the and features provided by Visual Studio:
- You use a single Find feature instead of two ("Find" and "Find in Files") to search strings.
- The window (shown below) selects the proper scope of the search automatically, saving you the hassle of selecting it manually. For example, the window can detect if you are searching occurrences of a parameter and then it sets the scope automatically to the current procedure.
- It allows you to exclude occurrences in comments or literals.
- It allows you to search in a subset of projects or files.
- The results are shown in a Result window which groups results by file, parent code element, etc. and allows you to store previous searches, to remove results from the list, to re-execute the search, etc.
MZ-Tools offers the following ways to find text in your source code:
- The menu.
- The context menu of a code window.
- The button on the toolbar.
- The keyboard shortcut associated with the command.
The window is the following:

You can apply the search to files of the following kind:
- : if you do not want to restrict the search.
- : to restrict the search to code files (.vb, .cs, etc.)
- : to restrict the search to web pages (.htm, .aspx, .ascx, etc.)
- : to restrict the search to text files.
You can use the following search options:
- : to consider or ignore the case.
- : to find whole words or to include also substrings.
- : to ignore occurrences inside comments.
- : to ignore occurrences inside literals.
- or : this setting allows you to use the characters "?" and "*" as wildcards or regular expressions (see the Visual Studio help). When you select one of these options, you can use the button to the right of the textbox to insert the wildcard or regular expression.
Also, you have the following output options:
- : this setting allows you to choose if you want to reuse the last result tab or to use a new one.
- : if this setting is not checked, code elements are not shown in the output, only the file where the result was found is shown; if the setting is checked, parent code elements (class, procedure, etc.) where the result was found are shown too.
Once you have performed the search, the Result Window allows you to replace the found text with another text in some or all of the occurrences. To do this:
- Show the panel by clicking the button.
- Replace the found text with another text, or replace the whole line where the text was found with a different line that you can compose.
- Select whether or not to keep open the modified documents (allowing undo).
- Click the button to replace the selected node (with its children) or the button to replace all nodes. When a found text of a node is replaced, the node is removed from the list.
Remarks:
- This feature does not work with Web Forms or HTML pages in Design view, it only works in HTML view.
See Also:
Result Window
Find Text Options
Keyboard Shortcuts Options
|