Source Insight project, relative path configuration

Source Insight is a program editor and code browser for project development. It has a built-in analysis of C/C++, C# and Java programs. It can analyze the source code and dynamically maintain its own symbol database while working, and automatically display useful contextual information.

When creating the Source Insight project, we'd better use the "relative path" and save the Source Insight project file in the source code package ( Note: It is best to create a separate folder for the Source Insight project to ensure that other project files do not follow it. Confusing and easy to manage ). In this way, if you place the source code package in another location on the hard disk, or distribute it to other people, or change the name of the source code package, the Source Insight project can still be used, and Project->Synchronize each time you use it Code synchronization operation in Files...

Step 1: Create a Source Insight project

Project->New project
fill in the corresponding project name and, at the same time select Source Insight to be created in the specific path ( usually create a directory dedicated to storing source insight );
click ok ;
enter New Project Settings , directly click ok ;
enter Add and Remove Project Files , click close directly .

Ps: If you do not click close at this time , the project source code will be added to the absolute path.

Step 2: Set the relative path

Project->default project setting
Then fill in the relative program path to create the Source Insight project in the Project Source Directory .

Ps: If the folder of the Source Insight project is in the same path as the source code of the project, just type "..\" in the path filled in this operation . This is a simple way of expressing relative paths. The source code path of the project will be modified according to the actual situation.

Step 3: Add project source code

Procject->Add and Remove Project Files…… , select the source code path of the project to be added, select Add Tree , and click ok .

So far, the relative path of a Source Insight project has been successfully added. Place the source code package in another location on the hard disk, or distribute it to others, or change the name of the source code package, the Source Insight project is still available. The source code uploaded to the project such as SVN or Git version control, change another PC or another local drive letter, re Checkout copy of the latest project file, open the project with Source Insight, need only "Project-> Synchronize Files ..." that is, can. The project source code is automatically traced to the relative path .

Guess you like

Origin blog.csdn.net/u013318019/article/details/77581656