Source Insight - Creating a New Project - 新建工程

Source Insight - Creating a New Project - 新建工程

1. Project -> New Project

Source Insight - Creating a New Project - 新建工程

C:\Users\cheng\Documents\Source Insight\Projects\Untitled Project
New project name 请使用英文。
Source Insight - Creating a New Project - 新建工程

D:\si_workspace\darknet
Source Insight - Creating a New Project - 新建工程

Source Insight - Creating a New Project - 新建工程

  • New project name

Enter the name of your project. Source Insight will create several files that start with this name and have dif­ferent extensions.
输入您的项目名称。Source Insight 将创建几个以该名称开头且具有不同扩展名的文件。

  • Where do you want to store the project data files?

Enter the full path to the folder where you want to save the project data files that are created by Source Insight. They can either be in the same folder as your source files, or in a separate location. By default, they are created under your Source Insight user directory in the Projects folder.
输入要保存由 Source Insight 创建的项目数据文件的文件夹的完整路径。 它们可以与源文件位于同一文件夹中,也可以位于单独的位置。 默认情况下,它们是在 Projects 文件夹中的 Source Insight 用户目录下创建的。

We recommend that your data directory be on a local, non-networked drive for reliability and best perfor­mance.
我们建议您将数据目录放在本地,非网络驱动器上,以确保可靠性和最佳性能。

2. New Project Settings

Source Insight - Creating a New Project - 新建工程

3. Add and Remove Project Files

取消选择 Show only know document types
Add All
OK

Add - 基本的文件添加操作。
Add All - 添加整个工程所有的源文件 (选择递归添加子目录中的源文件)。
Add Tree - 添加指定的文件夹及其子目录下的源代码文件。
Remove Tree - 与 Add Tree 的功能相反。
Include top level sub-directories - 添加子目录中的文件。
Recursively add lower sub-directoris - 递归的加入底层的子目录。
Source Insight - Creating a New Project - 新建工程

确定
Source Insight - Creating a New Project - 新建工程

4. Darknet Project - Source Insight

Source Insight - Creating a New Project - 新建工程

5. Source Insight 工程与源代码工程同步

Project -> Synchronize Files -> Start
Source Insight - Creating a New Project - 新建工程

Force all files to be re-parsed
Source Insight - Creating a New Project - 新建工程

Source Insight - Creating a New Project - 新建工程
Source Insight 工程与源代码工程同步,在 Source Insight 工程中的修改,也是对源代码工程的修改。

6. Options -> Document Options -> C Source File

File filter: *.c;*.h;*.s;*.S
Source Insight - Creating a New Project - 新建工程

Source Insight - Creating a New Project - 新建工程

文件中的头文件、函数和宏
Source Insight - Creating a New Project - 新建工程

7. Options -> Style Properties

函数名称字体过大,显得不美观。
Source Insight - Creating a New Project - 新建工程

Style Properties -> Font -> Font Name 中选 Pick... 设置为 Courier New + 常规 + 11,确定。
Style Properties -> Font -> Size 设为 11。
Source Insight - Creating a New Project - 新建工程

Source Insight - Creating a New Project - 新建工程

7.1 Options -> Style Properties -> Declare Prototype

Source Insight - Creating a New Project - 新建工程

7.2 Options -> Style Properties -> Declare Function

Source Insight - Creating a New Project - 新建工程

8. Context Window Properties 字体设置

Source Insight - Creating a New Project - 新建工程

Context Window Properties
Source Insight - Creating a New Project - 新建工程

Source Insight - Creating a New Project - 新建工程

Source Insight - Creating a New Project - 新建工程