Search for source insight

Source: Internet
Author: User

Source insight is a good C language editor for project management and reading and editing. The search function is frequently used and has many options. Similar to the search function of other software, the following describes the search function in English:

Search parameters:
Whole words only:                Full match search
Case sensitive :                 Case Sensitive
Project wide :                       Search within a project
Include subdirectories:         Including subdirectory search
Skip inactive code:              Skip Invalid code search
Skip comments :                 Skip annotation search
Search only comments:      Only when the comment is found

 

3.2.1.1 Loopup References

One of the most common search methods is to selectSearch/lookup referencesOr press Ctrl +/and then click the R button to search in the pop-up Loopup References window. There are four Search methods available in the Search Method:Simple string, regular expression, keyword expression, and look up reference. WhereSimple string is the most common search method. It can search for any character or character in a file, or even
_ Upap | a string like u
But when the project is large, the search process is slow.The regular expression lookup method will be introduced later when we talk about regular expression. Here, we will temporarily press this button. The keyword expression and look up reference query results are basically the same, but the display method is slightly different. Both methods use the database pre-created by Si, and the search speed is quite fast. However, this speed is usually only effective when searching for identifiers. You are strongly advised to search for functions such as function names and variable names.

3.2.1.2 Search Files

Select Search/Search Files or press Ctrl + Shift + F to Search in the pop-up Search Files window. Enter the File Name or folder in the File Name box. Note: When the folder to be queried contains subfolders, you can select Include Subdirectiories in Options to implement recursive search for each layer of files.

3.2.1.3 Search Project

Select Search/Search Project and Search in the displayed Search Project window. The operation is almost identical to the Loopup References operation. They respectively Save the configuration of the last search.

 

Lookup references dialog box

The Lookup References command is very similar to the Search Project command. In fact, each dialog box is identical. However, each dialog box has its own persistent state.

Find references

Type the symbol name you want to locate. the word under the cursor is automatically loaded into this text box. source Insight will use the context of the cursor position to determine the exact symbol instance you want. if you invoked Lookup References
From a symbol dialog box or window, then Source Insight keeps the exact symbol references along with this text box.

Typically, you wocould type the name of an identifier in your program, however you can type any string here and a project-wide search will be saved med. the search is very fast if you type a single word only.

Search in

This drop-down list contains a list of document types. you can use this list to restrict the search to only a special type of file, or just the current file. if the Project Window is visible, then you can also use this list to specify the files
Selected in the Project Window.

Search Method

You can pick the search method to use from this list. There are four different searching methods available:

•Simple string

•Regular Expression Interprets the pattern as a regular expression.

•Keyword expression Similar to an Internet search query.

•Lookup reference Searches for symbol references.

Lines of Context

This only applies if you selected the Keyword Expression search method. This specifies how closely, in number of lines, the keywords must occur in order to qualify as a match.See
Also "Keyword Expressions ".

Find word variations

If enabled, source insight will also find different ending forms of the keywords you specified. for example, if you specified the keyword "open", source insight will also find "Opens", or "opened", or "Opening ". this option is only available
The keyword expression search method.

Search options

Case Sensitive

Specifies whether the search is case sensitive or not.

Whole words only

For the lookup references mode, this option is always on. If you choose a different search method, this will restrict matches to only whole words.

Skip inactive code

If enabled, then only code that is active under Conditional compilation is searched. you must first specify known conditions in the preferences: Ages dialog box, in order for source insight to know what conditions are active or not. conditional
Compilation only applies to some ages.

Skip comments

If enabled, then comments will not be searched.

Search only comments

If enabled, then only comments will be searched. This is mutually exclusive with the Skip Comments option. The comment options slow the search down a little.

Smart reference matching

This enables Source Insight's smart reference matching feature. Source Insight will determine whether each reference found is actually referring to the symbol you are looking.

The Smart Reference Matching option means that the search results will only contain in references strictly to the exact symbol you specified. for example, if you select a member of a struct and look up its references, the search results will only contain
References to that participant member of that participant struct-not just any string that is equivalent. note that this option slows the process down because each same-string occurrence has to be qualified with a symbol lookup.

Touch files and cause recompile. turn this on to cause each file's "Last modified" time stamp to be set to the current time. this is useful if you have a compile time dependency on an identifier usage. just turn this on and search for references
With this command. The places where the identifier is referenced will be "touched" and your make program or development system will recompile those files the next time you build your program.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.