当前位置:网站首页>Introduction to source insight 4.0
Introduction to source insight 4.0
2022-07-27 20:57:00 【Passing bears~】
brief introduction
Source Insight It's a very powerful , Project oriented program editor , Have a point at C/C ++,C#,Java,Objective-C Built in dynamic analysis of .Source Insight It can realize the fast search of variables and functions in multi file code , It is conducive to code search and reading , Ability to easily browse and edit code , Automatically display relevant information at the same time , Easily jump to the caller of a function or a reference to a variable .
One ,Source Insight Installation
Source Insight The installation package can be found in Source Insight Official website obtain , You can download the trial version for free 30 God .
You can also get the permanent version from my online disk
link :https://pan.baidu.com/s/1RXIK2By9kwFrqJXkx4eAig
Extraction code :drec
function Source Insight The interface is as follows :
Two ,Source Insight Use
1, New project
choice Project → New Project Build a new project , Enter the project name and the path to save the project , And then click OK, As shown in the figure below :
The remaining options can be set by default , And then click OK, As shown in the figure below :
Next , After our new project ,Source Insight We are required to add documents for the project we have built , We can add files for the project through the next window . Select the source code you want to add , In the last step, we have located in the source code project , So we choose Add All, Add all files to the project , Of course, you can also choose to add , Then check the upper and lower level files , Click on OK, determine , Then close it , As shown in the figure below :
perhaps
add tree , Unchecked Recursively add lower sub-directorries It's fine too
Add files for the built project .
We need to pay attention to ,File Name The box shows only Source Insight Supported files (.c .cpp .h etc. ), about ASM Programs and other documents will not be displayed ( Can be added manually ). We can check Show only known file types This option allows you to choose to display other types of files .
In this way, our new project is completed , By default, the following three small windows will be displayed , Can pass
1. These three buttons are used to select on or off , The interface is as follows :
2. Use ctrl+o Open the file list on the right 
3. Code synchronization
In the edit area , Press the keyboard Ctrl, When clicking a variable or method with the mouse , Will jump to the definition of variables or methods .
If a variable or method is represented in black , It means that it has not been defined yet .
Of course, sometimes it is not because there is no definition , Need to sync ,Project->Synchronizing Files.
2, Understand engineering and source code reading
When we build a new project , You can view or open the added file through the project window , Open the process.c, The corresponding source program text pops up on the left , meanwhile , The text of the source program uses different colors to represent the different meanings of the code .
The leftmost part is the structure of the open source program, variable functions and other information , This window is convenient for us to observe the source program structure and quickly locate variables and functions , And use different icons to represent , Such as :
Indicates that the header file contains 、 Conditional compilation, etc
Represents a macro definition
Said variable
According to the function
We are positioned to process_start Function and select process Structure variable , below Context The window will show where the structure definition is defined in which file , Double click for a long time to jump to the corresponding position , Bottom right Relation window , The structure of the structure will also be displayed , As shown in the figure below :
3, Find and locate Reference And so on
In reading the source program , We are going to look at the definition prototype of function variables , You can right-click to select Jump To Definition To locate , Or click... In the toolbar , Of course, you can also use the above mentioned Context Window positioning .
Then is Source Insight Medium Reference function , You can quickly find all the marks in the whole project , And add a red two-way arrow in front of the program to quickly locate , As shown in the figure below :
We can click
Unfold or stow Reference, It can also be done through
These two icons view the previous tag or the next tag . adopt Reference We can better read the source program .
Other features
1. Set background color
Options->preference->color->windows background Set background color ( Eye protection :85,90,205)
Milky way white #FFFFFF RGB(255, 255, 255)
Apricot kernel yellow #FAF9DE RGB(250, 249, 222)
Autumn leaves are brown #FFF2E2 RGB(255, 242, 226)
Carmine #FDE6E0 RGB(253, 230, 224)
Green grass #E3EDCD RGB(227, 237, 205)
Haitian blue #DCE2F1 RGB(220, 226, 241)
Kudzu purple #E9EBFE RGB(233, 235, 254)
Aurora grey #EAEAEF RGB(234, 234, 239)
2.TAB Key indent
1. choice "Options"–>“Preferences”
2. Then select the corresponding file type , hold Tab、 Space 、 as well as Tab Force conversion to spaces by checking 
3. Common shortcut key
1.Ctrl + Mouse click Enter definition .
2.Alt + F12 Switchable , Make the character width consistent , Or display in different sizes .
3.Shift + F8 Highlight the word where the cursor is in the text .
4.Ctrl + G ( perhaps F5) Jump to a line .
5.Ctrl + O Search for files , Find enter and open , Can't find ESC sign out
6.Alt + G ( perhaps F7) open Symbol Window.
7.Alt +, back off ;Alt+. Forward .
8.Ctrl + F Find keywords .
4. All documents appear Chinese garbled code solution
When doing the following operations , First set up , Then close all open files , Then open the file .
In the menu bar 【Options】 > 【Preferences】 >File In the label , The bottom “Default encoding” : Change to System Default(Windows ANSI)
perhaps Chinese Simplified(GB2312) CP:936, Click ok , Problem solving ...
source insight Background theme setting

边栏推荐
- MySQL基本查询和运算符
- DJI内推码(一码一用,2022年7月26日更新)
- R语言使用dplyr包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组均值(mean)并合并生成的统计数据到原数据集中
- Rk3399 platform development series explanation (process part) 15.36, understanding process and collaboration process
- API Gateway介绍
- 你了解数据同步吗?
- R语言使用t.test函数执行t检验验证总体均值是否是某个特定的值(从样本集推论总体均值)
- MySQL驱动jar包的下载--保姆教程
- Chapter 7 Intermediate Shell Tool I
- Kingbasees heterogeneous database migration guide (3. Kingbasees migration capability support system)
猜你喜欢

好开不贵,舒适安全!深度体验比亚迪宋Pro DM-i

Babbitt | metauniverse daily must read: Tencent News suspended the sales service of digital collections, users left messages asking for a "refund", and phantom core also fell into the dilemma of "unsa

API Gateway介绍
![[deep learning] pytoch tensor](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[deep learning] pytoch tensor

Academic sharing | Tsinghua University, Kang Chongqing: power system carbon measurement technology and application (matlab code implementation)

程序放在哪儿?

How to translate the address in the program?

创新案例 | 本地生活服务数字化,高德品牌升级的增长战略

Why does Alibaba prohibit more than three forms from joining?

品牌列表案例
随机推荐
Slim: self supervised point cloud scene flow and motion estimation (iccv 2021)
人脸识别5.1- insightface人脸检测模型训练实战笔记
【R语言】【1】初学R语言语法使用Rstudio编辑
Software test interview question: string "axbyczdj", if you get the result "ABCD"
Why does Alibaba prohibit more than three forms from joining?
JVS公众号登陆配置
Write bootloader from 0
Where is the program?
品牌列表案例
[Numpy] 广播机制(Broadcast)
JVs basic framework function list
JVs privatization deployment start failure handling scheme
Laboratory management system implemented by SSM framework +jsp [source code + database + system paper]
金仓数据库 Oracle至KingbaseES迁移最佳实践(2. 概述)
hcip第五天
DJI push code (one code for one use, updated on July 26, 2022)
vi工作模式(3种)以及模式切换(转换)
Babbitt | metauniverse daily must read: Tencent News suspended the sales service of digital collections, users left messages asking for a "refund", and phantom core also fell into the dilemma of "unsa
Technology blog and tutorial
命令行 PDF 转换器:::fCoder 2PDF