You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Extended Find and Replace > Searching Code With the Extended Find and Replace
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

Searching For Code With the Find and Replace

With CodeSMART it is possible to perform searches and obtain search result lists for a piece of code at various project levels or even on the entire project group. A new search operation is usually made by using the Find and Replace dialog window in order to provide specific search options, but it can also be done in an unattended manner based on the current code selection or by reviewing previous search operations saved in a history combo box control.

To perform a new search by using the CodeSMART Find and Replace dialog:

  1. Optional. In the currently opened code pane select the text you want to search for.
  2. Open the Find and Replace dialog using one of the methods described in Accessing the Find and Replace
    Find and Replace Dialog
  3. Select the operation scope. Depending on the current position in code and the active code or designer window, only valid options are listed.
  4. Type the text to search for, select a previously searched text from the Search for combo-box, or click on the Fill with current word link in order to search for the current selection in code.
  5. To search for code that spans over multiple lines check the Multiline check box.
  6. You may filter out results found within strings and/or comments by checking the appropriate check boxes.
  7. You may also specify other search criteria in the Options section. You can search for whole words only or for words that exactly match the search text case.
  8. Click Find to launch the search operation. All code lines that match your search criteria will be listed in the Find and Replace 1 or Find and Replace 2 pane, according to your selection.
    Find and Replace contextual menu
  9. Double-click an item in the active Find and Replace tab to jump to its exact code location or choose the Select In Code entry in the Enhanced Immediate Window shortcut menu. The code pane containing the item will be opened and the match will be selected.

To review a previous search from the History combo box:

  1. Activate a Find and Replace pane, as the History combo box contains distinct information depending on each pane. The maximum number of items in each combo box is restricted to 10.
    Find and Replace History
  2. Choosing an item from the list will start a new search operation with the saved settings.

To perform a new unattended search based on the currently selected code:

  1. In the currently opened code pane select the text you want to search for (multiple line selection is allowed).
  2. Click the Find Selection Locally button on the Navigation and IDE Tools toolbar or choose the entry with the same name in the CodeSMART main menu, in order to start the search operation.
    Find Selection Locally
  3. The search operation is made with a generic set of options (all results will be reported, ignoring any restriction) and the results are listed in the active Find and Replace pane.

 Notes

  • Use the Find History combo box in order to re-run previous search and/or replace operations.
  • The result lists can be refreshed, cleared, printed, exported and the pane view can be customized all by using the pane's shortcut menu commands.
See also
Find and Replace Overview
Accessing the Find and Replace
Replacing Code With the Find and Replace
Printing the Find and Replace Results

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Extended Find