Using source insight to build a code reading project, source Insight is a very good code reading tool, it is very convenient to use it to read, modify, add, remove code, learn to use it very good.
I. Pre-conditions
Source Insight Version: 3.50
Source code: linux-3.10.4
Ii. steps to establish the project
Create a new project. Open source Insight, and the toolbar selects project, New Project, as follows:
Next, this dialog box appears,
Fill in the name of the project, as well as the catalog generated by the project file (typically a directory is created under the root of the source code to be read to hold the project-generated files). Add it down:
Select the root of the source code project and click OK, as follows:
There are four buttons on the right to add the source code to the project, the functions of these buttons are:
Add: Basic file addition operation
Add all: Adds all source files for the entire project (you can choose whether to recursively add source files from subdirectories)
Add Tree: Adds the source code file for the specified folder and its subdirectories
Remove tree: Contrary to the function of add tree
Once you've added the code you need to read, just click Close to turn it off.
The added code is then synchronized, the index of the reading Code and the auxiliary files are generated, so that the source code can be read as follows:
After the default project has been established for some suffix file is filtered, but in the actual project to some of the code is needed to read, such as in this project. S,. S and other files will not be found directly in the project index, so the following settings are required:
Then make the following settings:
At this point, the whole project was established.