当前位置:网站首页>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

边栏推荐
- IPv4/IPv6、DHCP、网关、路由
- JVS公众号登陆配置
- Laboratory management system implemented by SSM framework +jsp [source code + database + system paper]
- [Numpy] 数组属性
- 【深度学习】Pytorch Tensor 张量
- MYSQL设计优化生成列
- Innovative cases | the growth strategy of digitalization of local life services and upgrading of Gaode brand
- R语言使用t.test函数执行t检验验证总体均值是否是某个特定的值(从样本集推论总体均值)
- Software test interview question: string "axbyczdj", if you get the result "ABCD"
- 全局样式与图标
猜你喜欢

程序放在哪儿?

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

一周活动速递|深入浅出第8期;Meetup成都站报名进行中

IOU 目标跟踪其二:VIOU Tracker

金仓数据库 Oracle 至 KingbaseES 迁移最佳实践 (4. Oracle数据库移植实战)

People call this software testing engineer. You're just making a living (with HR interview Dictionary)

Go --- automatic recompilation of air

API Gateway介绍

82.(cesium篇)cesium点在3d模型上运动

Arduino development (II)_ RGB light control method based on Arduino uno development board
随机推荐
R语言使用epiDisplay包的lroc函数可视化logistic回归模型的ROC曲线并输出诊断表(diagnostic table)、可视化多条ROC曲线、使用legend函数为可视化图像添加图例
User and authority modify user password
82.(cesium篇)cesium点在3d模型上运动
Understand the encapsulation and de encapsulation of network model data
Kingbasees heterogeneous database migration guide (2. Overview)
VI working mode (3 kinds) and mode switching (conversion)
Source Insight 4.0使用介绍
[Numpy] 广播机制(Broadcast)
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
用户和权限限制用户使用资源
Express WEB服务器的简单使用
Software test interview question: how to output "0001" when a number is known to be 1
技术博客及教程
Kingbasees heterogeneous database migration guide (4. Application migration process)
mcu日志输出的一种方法
Management of user organization structure
Rk3399 platform development series explanation (process part) 15.36, understanding process and collaboration process
【深度学习】Pytorch torch.autograd 自动差分引擎
Users and permissions restrict users from using resources
金仓数据库 Oracle至KingbaseES迁移最佳实践(2. 概述)