Source Insight - Creating a New Project - 新建工程
Source Insight - Creating a New Project - 新建工程
1. Project -> New Project
C:\Users\cheng\Documents\Source Insight\Projects\Untitled Project
New project name 请使用英文。
D:\si_workspace\darknet
- New project name
Enter the name of your project. Source Insight will create several files that start with this name and have different 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 performance.
我们建议您将数据目录放在本地,非网络驱动器上,以确保可靠性和最佳性能。
2. New Project Settings
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
- 递归的加入底层的子目录。
确定
4. Darknet Project - Source Insight
5. Source Insight 工程与源代码工程同步
Project -> Synchronize Files -> Start
Force all files to be re-parsed
Source Insight 工程与源代码工程同步,在 Source Insight 工程中的修改,也是对源代码工程的修改。
6. Options -> Document Options -> C Source File
File filter: *.c;*.h;*.s;*.S
文件中的头文件、函数和宏
7. Options -> Style Properties
函数名称字体过大,显得不美观。
Style Properties -> Font -> Font Name 中选 Pick...
设置为 Courier New + 常规 + 11
,确定。
Style Properties -> Font -> Size 设为 11。
7.1 Options -> Style Properties -> Declare Prototype
7.2 Options -> Style Properties -> Declare Function
8. Context Window Properties 字体设置
Context Window Properties