Source Insight 4.0 installation process and simple use

Source Insight 4.0 is easy to use

Step 1: Install sourceinsight4.0

insert image description here

insert image description here
insert image description here
insert image description here
insert image description here
OK, let's start using it!
Appendix:
If there is a problem after installation or after installation, please uninstall it completely and reinstall it again.
Complete uninstall method:
1. Clear the registry information:
"win" + R or "Start" -> "Run", enter "regedit", press Enter;

In the pop-up registry manager, select "Edit" -> "Search" -> "source insight", or follow the path below to expand: HKEY_CURRENT_USER -> software -> Source Dynamics -> Source Insight;

Select the corresponding version project that needs to be cleared under the source insight under the item, right click and "delete".
2. Delete global configuration information:
• All files and this folder under ./user/document/source insight 3.0/4.0

• Note that the path here may be different or it may be: "Library" -> "User" (or your name) -> Documentation -> source insight3.0/4.0

• Or whatever other location you specified during your last install

Source Insight4.0 software opens the solution to the garbled Chinese comments in the C program.
Change the default UTF-8 of the program in the Default encoding at the bottom of Options—Preference—Files to System Default (windows ANSI).

Use of SourceInsight4.0

Create an SI project management code

• The overall idea: tell SI which files to parse -> tell SI where these files are -> tell SI that the file is selected, let's parse it.
• First, the demonstration here is to import the linux kernel source code

import project

1. Click Project->New Project.

insert image description here

2. Click Browse and select the directory where your project will be stored.

insert image description here

3. Give the new Source Insight project a name and click OK.

4. In the red box, select the path where the kernel source code needs to be opened, and then click OK

insert image description here
5. Click OK in the pop-up window, and then click Add Tree to add all files under the directory structure to the project. Finally click Close, and the project is created.

insert image description here
insert image description here

6. SynchronizeFile, double-click the file in the Project Files window to open the file for reading or editing.

insert image description here

After completion, if it is not displayed correctly in the file list list box on the right
You need to find Project Windows under the Panels cascade menu under the View menu, and check it.
insert image description here
insert image description here

Create a new project

The shortcut key Alt+Shift+N can open the New Project dialog box, and then fill in the project storage location, source file location, etc. according to the prompts, and then the Add and Delete Project File dialog box will appear, select the file you want to edit and browse and add it , so that a project is built.

Window Settings for SourceInsight

• Here are some settings for SourceInsight, you don't need to set them at all, the default is fine.

• Choose a theme: Option -> Visual Theme (choose your favorite).

• Set font size: Option -> Preference -> Colors & Fonts -> Style -> size. (CTRL + scroll wheel)

• Display the full path of the file: Option -> Preference -> Display, remove trim long path names with ellips.

• Add a configuration file (configured by someone else): Option -> Load configuration (provided you downloaded someone else's configuration file).

• Display line numbers: view -> Line Numbers.

skills

(1) If you want to search the character position, select the font and click the R icon on the toolbar or Ctrl + F.
insert image description here
Enter the file name in the dialog box of the Project Window (default right), you can search for the file
insert image description here
(2), ctrl+left click, enter the function definition or variable declaration.
Jump To Definition : Jump to the definition of a selected symbol. In fact, when you select a symbol with the mouse in the editor, if you open the "Context Window", you can see the definition of the symbol in the "Context Window" in real time.

insert image description here
insert image description here
To view all the calls of the function, right-click the function, select Lookup References
insert image description here
and then select Search
insert image description here
and the following interface appears
insert image description here

Sourcr insight Chinese garbled problem

Single file garbled solution:

[File] > [Reload As Encoding…] > [Chinese Simplified (GB18030)] in the menu bar > After selecting, click load, the problem is solved! ! !

All file garbled solutions:

[Options] > [Preferences] > File tab in the menu bar, the bottom "Default encoding": change to System Default (Windows ANSI) or Chinese Simplified (GB2312) CP:936, click OK, the problem is solved! !

Guess you like

Origin blog.csdn.net/qq_41290252/article/details/103689626