I. option settings
1. display the row number
View menu-> line numbers
2. Set the relationship between the tab key and Space
(1) options-> document options-> tab width, set to 4
(2) options-> document options-> in the editing options column in the lower right corner, check expand tabs.
3. Font settings
Options-> document options-> screen fonts, select the font you need
4. character width
View-> draft view, which can make the width of each character consistent. The shortcut key is "Alt + F12 ". This can be opened in different editors, and the code is always aligned.
5. leave {And} unindent:
Options-> document options-> auto indent-> indent open brace/indent close Brace
6. Restore the "+,-, *,/" function of the keypad [1]
Options --> key assignments,
(1) Use the keyword scroll to locate Scroll half page up and cancel the keypad /;
(2) Use the keyword scroll to locate Scroll half page down and cancel the keypad *;
(3) Use the keyword function to find the function up and cancel the keypad -;
(4) use the keyword function to find the function down and cancel the keypad +.
7. enable the full selection function of Ctrl + A [1]
Options --> key assignments,
(1) Use the keyword save to find save all and change it to Ctrl + Shift +.
(2) Find select all through the keyword select and change it to Ctrl +
8. Remove the auto-completion function (PS: I like this function very much and provide it to people who do not like this function) [2]
(1) options-> preferences-> typing card-> auto completion box, uncheck the use Automation symbol completion window (here is the global settings of SIS)
(2) In the options-> document option-> editing options box, uncheck allow auto-complete (partial setting)
The auto completion function can be enabled only when you select all of the preceding two items.
Ii. Tips
1. Search for variable definitions
Press ctrl and point to a variable and click it to enter the definition of the variable.
2. Highlight all words at the same position as the cursor
"Shift + F8"
3. Jump to a row
"Ctrl + G"
4. Shortcut Key part [2]
CTRL + =: Jump to definition
CTRL +/: Look up reference
F3: Search backward
F4: search forward
F5: go to line
F7: Look up symbols
F8: Look up local symbols
F9: IDENT left
F10: IDENT right
Alt +,: Jump Backword
Alt +.: jump forward
Shift + F3: Search the word under cusor backward
Shift + F4: Search the word under cusor forward
F12: incremental search
Shift + Ctrl + F: Search in Project
Shift + F8: hilight word
3. Use the macro function
In encoding, the following functions are often used: Add a file header, function description, and macro definition, and add a file name, function name, and current date. These functions can be implemented by combining macro files and menu items.
3.1 construct macro files
The Macro file example is not provided here. The default directory "My Documents/source Insight/projects/base" in source insight 3.5 contains a macro file "utils. you can use it directly or add, delete, and repair it. You can also download the macro file (http://www.sourceinsight.com/public/macros/), assuming the downloaded macro file name is called "comment. Em"
3.2 combine macro files and menu items [1]
1. Project-> open project... open the base project (this project is generally in "My Documents/source Insight/projects/base );
2. Project-> add and remove project files... add the downloaded macro file (comment. Em );
3. Options-> menu assignments open the menu assignments window, enter macro in command, select the macro to be used, and add it to the appropriate menu. You can use the default macro file "utils. Em" or download the macro file "comment. Em ".
3.3 Use macro files through menu items
In the corresponding source file, click the menu item specified above to complete the macro definition function. Insert the macro definition generated in the source code, such as comments.
Refer:
[1] http://blog.csdn.net/flyyanqu/archive/2008/03/27/2222799.aspx
[2] http://apps.hi.baidu.com/share/detail/978468