Detailed explanation of the search function of source insight

http://blog.csdn.net/xiaoaid01/article/details/37876523

http://bbs.csdn.net/topics/330208990

https://blog.csdn.net/jeffasd/article/details/75271320


sourceinsight is a very good code reading and editing tool, which is convenient for project management and program reading and editing. The search function is used very frequently and has many options. It is similar to the search function of other software. The following is a brief description of the search function in the English version:

Lookup parameters:
whole wordsonly : whole word match lookup
casesensitive : case sensitive
projectwide : lookup within project
includesubdirectories : include subdirectory lookup
skip inactivecode : skip invalid code lookup
skipcomments : skip comment lookup
search onlycomments : lookup only in comments

 

3.2.1.1 Loopup References

One of our most commonly used search methods is to select Search/Lookup References or press the Ctrl+/ key combination or click the R button with the mouse to search in the pop-up Loopup References window. There are four optional search methods in SearchMethod: Simple String, Regular Expression, KeywordExpression and Look Up Reference . Among them, SimpleString is the most common search method, which can search for any characters or characters that appear in the file, and even search for strings such as _upap || u , but when the project is large, the search process will be slower. The RegularExpression search method will be introduced later when the regular expression is described. It is not listed here for the time being. The results of Keyword Expression and Look UpReference lookups are basically the same, but are displayed slightly differently. Both of these methods use SI's pre-built database , which is fairly fast to look up. But usually this speed is only noticeable when looking up identifiers. For lookups like function names, variable names, etc., these two methods are strongly recommended.

3.2.1.2 SearchFiles

Select Search/Search Files or press Ctrl+Shift+F to search in the pop-up Search Files window. In the File Name box, you can fill in the file name or folder. Note that when the folder to be queried contains subfolders, you can check IncludeSubdirectiories in Options to implement recursive search for files at each layer.

3.2.1.3 SearchProject

Select Search/Search Project, and perform the search operation in the pop-up Search Project window. The operation is almost identical to LoopupReferences, they each save the configuration of the last search.

Several commonly used shortcut keys
By default, SI has defined many very useful shortcut keys: 
F5
specifies the line number, realizes line jump, and can find the wrong line very easily when encountering compilation errors. 
Shift+F8
Highlights the specified logo for a quick overview of logo usage. 
Ctrl+mouse click on the logo
to jump directly to the logo definition. 
Ctrl+F
Find within this file. 
F3
The previous search result of this file. 
F4
This file is next to the search result. 
F7
opens the Browse Project Symbols window for a quick overview of the symbol definitions within the project. 
Ctrl+M
to create or find bookmarks, so that you can easily find this location next time. 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325577464&siteId=291194637