How to use SourceInsight to read large source code - taking the Linux kernel as an example

Table of contents

1. Solve the problem of decompressing the duplicate name of the Linux kernel file

2. Create a kernel source code project with SourceInsight

3. SourceInsight commonly used shortcut keys


1. Solve the problem of decompressing the duplicate name of the Linux kernel file

Because Linux file names are case-sensitive, and Windows is not by default, so when decompressing the Linux kernel, the problem of duplicate file names will appear.

1. First set the properties of the windows folder. To enable the windows function, start the Windows system for Linux in Control Panel-Programs-Programs and Features.

2. Then create a folder for storing kernel files, take the folder kernel created on the D drive as an example

win+r run cmd input command: fsutil file SetCaseSensitiveInfo D:\kernel enable 

3. Create a temporary folder for decompression software to temporarily store files, and set it to be case-sensitive. Take the folder Temp created on the D drive as an example

win+r run cmd input command: fsutil file SetCaseSensitiveInfo D:\Temp enable 

4. Set the decompression software temporary path

 After setting, there will be no duplicate name problem.

2. Create a kernel source code project with SourceInsight

Create a folder to store SourceInsight project configuration files

I like to build it in the source code directory. In fact, it can be built anywhere. Choose a name that is easy to recognize. It is best not to include Chinese in the path.

Open the software, click Project-New Project

Take a project name, and select the folder we created before as the path

 Select the top-level directory of the source code

 Select Add All to add all the source code files

Both ticks must be ticked here 

 All files will appear on any right side, if not, click the P button in the red box

sync files 

 

 There are many files and it will take some time 

3. SourceInsight commonly used shortcut keys

1. Shift+F8 highlights the specified character.

2. For the result found by Ctrl+F, use F4 and F3 to search forward and backward.

3. Alt+, back alt+. forward to find keywords.

4. Alt+G or F5 jumps to a fixed line number.

5. Ctrl+M can manage labels by itself, define a number by itself, and easily switch between one file or multiple files.

6. Ctrl+H is to find and replace in one file, and ctrl+shift+h is to find and replace in multiple files.

7. You can select columns in si by holding down alt and selecting with the left key.

8. Ctrl+/ is to search for certain keywords in all opened files.

9, Ctrl+k is the shortcut key for copying a line

Guess you like

Origin blog.csdn.net/freestep96/article/details/126802888