当前位置:网站首页>Source insight configuration and problem summary
Source insight configuration and problem summary
2022-04-21 20:05:00 【Cattle young man】
List of articles
- Preface
- One 、 To configure
- Two 、 problem
-
- 1 Stuck when creating a project with a large number of files
- 2 Changes to the mapping disk file cannot be saved
- 3 Call the relationship window to constantly transform the index function
- 4 source insight Comments added on linux It's garbled on the screen .
- 5 The global search cannot find the existing information
- 6 sign out source insight Window top
Preface
source insight Is a very easy to use code reading and editing software , In order to quickly configure and put into use after installation , Record your favorite configuration and some problems in writing .
Environmental statement :
windows10 System
Source Insight 4.0
One 、 To configure
1 Change the background to bean paste green
1.1 stay options Select slice... Under option preferences.

1.2 Select... In the figure 2 Tag options , Click on 3 Tag button .

1.3 Operate in sequence according to the operation sequence in the figure . There are several colors of bean paste green on the Internet , Personally feel windows10 Upper use 85,123,205 The color is softer .

2 Modify the font and its size
2.1 Use key combination “alt + y”, The pop-up interface is as follows , Click the button in the red box .

2.2 I prefer the following configuration :

2.3 After modification, it needs to be confirmed , Input “yes” that will do .

3 Display code line number
Menu bar “view” Under Options , Click on “line numbers” that will do .
4 How to set the right margin
In view of the requirements of the coding specification , Neat code limits the number of characters in a single line of code .
4.1 Use key combination “alt + y”, The pop-up interface is as follows , Follow the sequence in the figure . I set up 80 The width of the character .

4.2 The renderings are as follows :

5 How to make the history file display in the form of label bar
5.1 Click on the menu bar “View” Under the “Windows Tabs” Options can be .

6 The coding specification requires that the length of the function should not exceed 50 That's ok
Just like the number of characters in a single line , In order to improve the readability of the code , Sometimes, the total number of lines of code and comments of a single function is limited to 50 That's ok .source insight4.0 This prompt function has been automatically enabled on , When the function exceeds 50 The file window on the left will bold the function name when the line is opened , as follows :

This function is available by default , To set or cancel , as follows :


Two 、 problem
1 Stuck when creating a project with a large number of files
Examples of questions :
Creating linux Kernel source code Engineering , When adding the contents of the entire kernel folder to the project , There will be file loading jam , One click with the mouse will also get stuck and exit , And rebuild the project .
reason : Too many files to load , After loading, index the calling relationship of each function , A lot of work , Nature needs more time , It is also prone to Caton phenomenon . Of course, it is also related to computer performance .
solve :
The ultimate solution :
It's been changed recently i7-10875CPU Notebook , The kernel is loaded in seconds , Join in kernel All the documents will soon , After adding, the global search for a string is also completed in seconds , As smooth as you can , The whole process leads to extreme comfort !
Method 1 : Add only the working directory used , You need to know that the files you use are in those folders . This method is generally applicable .
Method 2 : Add folder , It's inevitable to add some unused files , It's much better to just add files for your own use than method 1 .
So here comes the question , I can probably choose the right folder , But if you choose a file , The difficulty is too high .
Here is a special for linux Kernel and uboot Script for , The role of the script is to find the files used from the source code of your compiled version , And record the file path . Use source insight You can directly use the file generated by the script to add your own files .
The great God helped us write the script , Here is github link , Don't forget to point a star for someone .
Generate_Kernel_Uboot_Project_forIDE
Method 3 : Just wait !( Most personal use )
For various reasons , I choose to wait , Why “ Darling ” Well ? At first, when I found Caton, I would click on the software with the mouse , Then it's stuck and dodged .
Later, I found that as long as the hands don't itch , The programmer's computer can still build a complete kernel project .
Here's how to wait :
When loading kernel files , Due to the large number of files , So when the loading progress bar disappears , In fact, the loading work is not over yet , As shown below .

This is the time Do not click “close” key , But keep waiting , Otherwise the software will get stuck , Can't even continue loading , You can only load it from the beginning , Until a file is displayed in the box below , as follows :

2 Changes to the mapping disk file cannot be saved

There are generally two reasons for this ,
- The file of the mapping disk does not have write permission , Do not modify . Use chmod Add permissions .
- The file belongs to root user , Do not modify ( Use it directly root Except for logged in , But now the new version of linux Basically not like reahat Earlier versions can be used directly root Log on to the ). You need to use chown To modify the user to which the file belongs as non root Users can .
3 Call the relationship window to constantly transform the index function
Sometimes I want to see the multi-layer calling relationship of a function , However, it is found that the calling relationship serial port will automatically index the function pointed by the mouse , How do I fix the function to be viewed ?

Click on “ Small lock ” Just lock the current window , After locking, you need to select the index function , Click on “ Small lock ” The following icon is used to manually index the upper level call .

4 source insight Comments added on linux It's garbled on the screen .
terms of settlement : Modify the format of the file
Avoid similar situations in the future : Use source insight 4 And higher ,3.x Version does not support modification of encoding format .4 Version support is as follows :

5 The global search cannot find the existing information
Sometimes it is necessary to locate the error code location according to the error information obtained by the code operation , But I didn't find it in the global search , Now check the search criteria :

6 sign out source insight Window top
Sometimes I find out source insight Window top , As a result, it is not convenient to use other software . Exit the top method :
- stay source insight Double click the interface F11 key , See if the topping is cancelled .
- if 1 It doesn't work , Then restart source insight, Double click F11 key .
Read excerpts and share :
The Wallach effect :
- Managing your strengths , Add value to your life
- Admit your shortcomings , Make up for defects
版权声明
本文为[Cattle young man]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211937251610.html
边栏推荐
- redis
- How to judge whether the nbit bit of int type value is 1 or 0
- How to solve the thread safety problem without locking
- 【 summer internship 】
- Jerry's unshielded interrupt [chapter]
- MySQL 2003 can't connect to MySQL server on 'localhost' (10038)
- 高端制造業企業信息化解决方案,工業電商平臺設備、數據、體系預測性維護
- Test while (U --); And while (U) U --; Differences between
- Use of complex function in MATLAB
- STL container (I) -- vector
猜你喜欢

Solutions informatiques pour les entreprises manufacturières haut de gamme, maintenance prédictive de l'équipement, des données et du système de la plate - forme de commerce électronique industriel

Cuda02 - memory access optimization and unified memory

Lenovo announced the new progress of ESG: it promised that 100% of all computer products would contain recycled plastics by 2025

Wild road play QT, episode 31, glass cleaning game

接口非幂等性解决

Why does SVPWM module have sector judgment error?
![[2021] number of effective sequences programmed by Tencent autumn recruitment technology post](/img/c2/1246796e2e1e228426788230d0e8ec.png)
[2021] number of effective sequences programmed by Tencent autumn recruitment technology post
![[gradle] problem analysis + download and installation + environment configuration + installation verification](/img/a6/d6ea65127fbbed259f5f22faf23839.png)
[gradle] problem analysis + download and installation + environment configuration + installation verification

80. (leaflet chapter) leaflet calls the PostGIS data layer published by GeoServer

Xinguan is merciless, human beings have feelings, Xinlong agriculture ensures people's livelihood and jointly fights the epidemic -- condolences to the front line of fighting the epidemic, love the el
随机推荐
URL to download network resources
Digital business cloud community property platform system solution - easy property management and leveraging potential business opportunities
图像中stride的含义
Niuke bm40 Rebuild binary tree
阿里IOT
How to judge whether the nbit bit of int type value is 1 or 0
docker中安装MySQL、MSSQL、Oracle、MongDB、Redis集合
[reprint] devm_ XXX mechanism
How to restore the deleted photos? Four schemes, which is the official guide
Create thread pool manually
C# 版本的 计时器类 精确到微秒 秒后保留一位小数 支持年月日时分秒带单位的输出
PyCharm failed to create JVM
Considerations for index creation
Use of complex function in MATLAB
Esaycode template
Solution of "unable to load and save data" in Eldon law ring
80. (leaflet chapter) leaflet calls the PostGIS data layer published by GeoServer
MFC CCombobox usage example
艾尔登法环“无法加载保存数据”解决方法
Instructions for Jerry's reset IO maintenance level [chapter]