Official website download address:
https://www.sourceinsight.com/
Source Insight is one of the very easy-to-use language editors today, supporting almost all languages, such as C, C++, ASM, PAS, ASP, HTML and other common ones, and also supports self-defined keywords. Source Insight provides quick access Features of source code and source information.
Source Insight automatically creates and maintains its own high-performance symbol database, including functions, methods, global variables, structures, classes, and other types of symbols defined in project source files. Source Insight can quickly update the file information, even when editing code. Moreover, the symbols of the symbol database can be automatically created in the project file.
Source Insight installation tutorial
1. Download the latest source insight installation package from the official website, and double-click to run the program. Open the following installation wizard interface, click next [Next];
2. Enter the Source Insightt installation agreement interface, you need to check "i accept..." [I agree to this software agreement], click next [Next]
3. Select Source Insight Installation location, the software is installed in the C drive directory by default, you can click change [Modify] in the opened window, you can modify the software installation location by yourself. After the definition is complete, click next【Next】;
4. Prepare for installation. If you want to modify the installation location of Source Insight, you can click 【back】to modify it. If there is no problem, click install【Install】
5. Wait for source insight to install~~
6 , The installation is complete, click Finish [Finish] to exit the installation wizard.
Create a project
Before creating a project, it is recommended to configure the software settings, especially the font settings, otherwise there will be Chinese garbled characters
1. Enter the main interface of the software, click [project] in the menu bar, and click [new project] in the pop-up selection.
2. If you want to import the previous code, you can click [browse]
3. In the opened window, select the location where your previous code is saved, and click [Open].
4. Give the new Source Insight project a name, and click OK
5. Click [OK] in the pop-up window
6. Click Add Tree in the opened window to add all files under the directory structure to the project, and close after Load is completed The dialog will do just fine. Code from different paths can be added. The project is established.
7. Double-click the file in the Project Files window to open the file.
8. In the opened code window, you can edit your code.
After completion, the Project Window will appear on the right, click any of the files, and the content will be displayed in the central editing area. On the left is the Symbol Window, which can quickly locate functions, variable definitions, etc. Below is the Context Window, which displays useful context-sensitive information. You can call out or close various windows through the View menu. For example, Relative Window can display the method called in the method.
Source Insight FAQ
1. How to solve the Chinese garbled characters in source insight?
1. Start source insight 4.0 and enter the main interface. Click the option in the source insight menu bar——"Prefences option, as shown in the figure below:
2. Open the Prefences pop-up box, and switch the tab to file here. Find Default encoding below, as shown in the figure below.
3. Select Chinese Simplified again and click "OK".
4. Chinese can be displayed when the source insight project file is opened again
2. How to set the font size of Source Insight?
1. Open Source Insight, click Options–>Document Options in the menu bar. You can also use the shortcut key alt+t.
2. In the pop-up dialog box, click Screen Fonts to change the font.
3. Set the font size according to your needs. After the setting is complete, click yes.
4. When you return to the project interface, you will see that the font has changed significantly.
skills
Synchronization
In the editing area, press Ctrl and click a variable or method with the mouse to jump to
the definition of the variable or method.
If a variable or method is represented in black font, it means that it has not been defined.
Of course, sometimes it is not because there is no definition, you need to synchronize, Project->Synchronizing Files.
View definition
You can select a variable, then right click, Jump to Definition, jump to definition.
Of course, as mentioned above, you can also directly click Ctrl+mouse.
Select a variable or method in the editing area, and after a second or two, the Context Window will automatically display the definition.
Find References
Select a variable or method and right-click Lookup References... to search.
The search results are displayed in a box, click the red mark (two red triangles opposite to each other) in front of each search result, you can enter the code file corresponding to the result, and enter the code editing state; then click the search at the beginning of the corresponding line in the code The red marker for takes you back to the search results page.
There are corresponding icons on the toolbar to jump to the previous and next.
In the pop-up dialog box of Lookup References, you can configure query options. For example, whether it is case-sensitive, whether to find comments or only look in comments.
In addition, the Search Method can also be selected as a string, a regular expression, a keyword, or a reference type.
Find call
This is for methods, select the method name, and then right-click Jump to Caller, if there is only one call, it will jump directly, if it is called multiple times, a list box will be displayed, select an item and jump to it.
The search in the file can be done through the menu Search.
Commonly used shortcut keys for Source Insight
1.Ctrl + mouse click to enter the definition.
2. Alt + F12 can be switched to make the character width consistent, or display in different sizes.
3.Shift + F8 Highlight the word where the cursor is located in the text.
4.Ctrl + G (or F5) to jump to a certain line.
5.Ctrl + O to search for files, press Enter to open if found, ESC to exit if not found
6. Alt + G (or F7) to open the Symbol Window.
7. Alt +, back; Alt +. Forward.
8.Ctrl + F to find keywords.