SOURCE Insight Search Function _ small knowledge

Source: Internet
Author: User
Source insight is a very good C language Program editor, easy to project management, easy to read and edit the program. Find features are used very frequently, more options, and other software to find the same function, the following on the English version of the search function, do a simple description:




Find parameters:
Whole words only: whole word matching search
Case sensitive: case-sensitive
Project wide: Finding within projects
Include subdirectories: Include subdirectory lookup
Skip inactive code: Skipping Invalid codes lookup
Skip comments: Skip Comment Lookup
Search only Comments: note in the lookup





3.2.1.1 Loopup References
One of our most common ways to find is to select the Search/lookup references or press the ctrl+/key combination or the mouse point R button, in the pop-up Loopup references window to find operations. There are four alternative ways of looking in search methods: Simple String, Regular Expression, Keyword Expression, and look up Reference. Simple string is the most common way to find any character or character that appears in a file, and can even find _UPAP | | A string like this, but the lookup process is slower when the project is larger. Regular expression Lookup method will be described in the later on the regular expression will be introduced, here temporarily press not the table. The results of the Keyword expression and look up reference are basically the same, but the display is slightly different. Both of these methods are used in the database of the pre-built Si, which is very fast to find. However, this speed is usually only noticeable when looking for identifiers. For lookups like function names, variable names, and so on, it is highly recommended that you find them in both ways.
3.2.1.2 Search Files
Select Search/search files or press the CTRL+SHIFT+F key combination to find in the pop-up Search Files window. In the File name box, you can fill in the file name or folder. Note When the folder you want to query contains subfolders, you can check the include subdirectiories in options to achieve a recursive search for each layer of files.
3.2.1.3 Search Project
Select Search/search Project to find operations in the Search Project window that pops up. Operations are almost identical to the Loopup references, which each holds the configuration of the last search.

Lookup References Dialog Box


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


Find References to
Type the symbol name you want to locate. The word under the cursor is automatically loaded to this text box. Source Insight would use the "context of" the cursor position to determine the exact symbol instance your want. If you are 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 would type the name of a identifier in your program, however you can type any string here and a Project-wi De search would be performed. The search is very fast if you are a single word.


Search in
This Drop-down list contains a list of document types. You can use this list to restrict the ' search to ' only ' a particular type of file, or just the current file. If the Project window is visible, then your 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:


Simple String


regular Expression interprets the pattern as a Regular Expression.


keyword Expression similar to a Internet search query.


Lookup Reference searches for symbol references.


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


Find word variations
If enabled, Source Insight would also find different ending forms of the keywords your specified. For example, if you specified the keyword "open", Source Insight'll also find "opens", or "opened", or "opening". This option is only available to 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 are choose a different search method, this'll restrict matches to only whole words.


Skip Inactive Code
If enabled, then only code this is active under conditional compilation is searched. You must-specify known conditions in the Preferences:languages box, in order for Source Insight to Dialog know Conditions are active or not. Conditional compilation only applies to some languages.


Skip Comments
If enabled, then comments won't be searched.


Search only Comments
If enabled, then only comments'll 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 would determine whether each reference found be actually referring to the symbol of are for.


The Smart Reference Matching option means that search results'll only contain references strictly to the exact L you specified. For example, if you select A's a struct and look up its references, the search results'll only contain reference s to so particular member of this particular struct–not just any string this is equivalent. Note ' This ' option slows the process down because each same-string occurrence has to is qualified with a symbol lookup.


Touch files and cause recompile. Turn this is cause each of the file ' s ' "Last Modified" time stamp to is set to the current time. This is useful if your have a compile time dependency on a identifier usage. Just turn this in and search for the references with the This command. The places where the identifier is referenced'll be ' touched ' and your make program or development system would recompile Those files the next time to build your.

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.