Source: http://www.cnblogs.com/bluestorm/archive/2012/10/28/2743792.html
1. Brace pairing highlighting:
"On the left side of the front parenthesis, the left side of the parenthesis," double-click the left mouse button to select the matching brackets and the contents (<>, (), l{r},[])
2. Let {and} do not indent:
Options, Document Options, auto indenting, auto Indent Type, select simple
Also: let {and} do not indent: options->document options->auto indent Remove indent Open brace and indent Close brace. (not so, parentheses cannot be paired!) )
3. Add a file type
Users can define their own types, options->document options->add type, define file type names, and filename suffixes.
Tick the include when adding to projects in the Add directory file to project is the type of file will be added into Si project.
If you need to add all the files into the project of SI, you can define a file type, *. *.
4. Restore CTRL + a full Select function
Options--Key Assignments: Save all by keyword, change to Ctrl+shift+a, select all by key, and change to Ctrl +a
5. Set the background color:
Options->preference->color->windows Background setting background color (eye protection: 85,90,205)
6. Characters vary in size:
Method 1: Select "View-to draft view" to make the width of each character consistent. Shortcut key is "Alt + F12"
Method 2: resolve the Chinese note font spacing is too large:
(1). Options->style Properties
(2). On the left style name, locate comment Multi line and comment. Select "Pick ..." in the font name under the corresponding Font property box on the right. Set to Arial, regular, small four. OK, return to the style properties interface, size set to 10. Finally set clolors box under foreground, point "Pick ..." Choose a color you like, OK.
Note: The above Method 1 is a common setting, in method 2 You can set the comment font and font size!
7. Delete the comment half a Chinese character problem (delete a Chinese character, the Chinese character is not, but will be more than a question mark?) )
Method:
① Copy the Superbackspace.em to the Source Insight installation directory;
②project→open Project, open the base project;
③ will copy the past Superbackspace.em add to the base project;
④ restart Sourceinsight;
⑤options→key Assignments, bind marco:superbackspace to the BACKSPACE key;
⑥enjoy!!
Superbackspace.em source in the last side of the post, copy Save as Superbackspace.em, or you can download directly here: http://pan.baidu.com/share/link?shareid=101784 &uk=3204866771
8. Practical shortcut keys:
Shift+f8: Highlight selected words
"Ctrl + G" or "F5": jumps to the specified line
"ctrl+=" or CTRL + mouse click to identify: Jump directly to the identity definition to adjust the usefulness
Ctrl+f: Find in this document
F7: Open the Browse Project symbols window to quickly browse the in-project identity definition
F3: The previous search results for this file
F4: This file finds the next
Ctrl+m: Create or find bookmarks to make it easier to retrieve this location next time
9. Solve the tab indent problem
Options-> Document options inside the bottom right corner of the editing options bar, put expand tabs hook up, and then determine. OK, now the tab indent and the indentation of four Spaces look aligned in SIS
(The Linux tab is 8 spaces long, so the tab and 4 spaces will match!) )
------------------------------------------------
Common shortcut keys for Source Insight:
ctrl+=: Jump To Definition
alt+/: 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
window action:
project window ctrl+o open
symbol window Alt+f8 Open and close
relation Window Custom Key Open first lock then refresh contact
*===========================Superbackspace.em============================
* Superbackspace Version 0.1beta
*
* Replaces Sourceinsight's original backspace function (hopefully)
* Added support for double-byte Chinese characters, while deleting Chinese characters can also remove the high byte of Chinese characters and alleviate the problem of half Chinese characters.
* can automatically correct the situation of the cursor in the middle of the Chinese characters
*
Installation
*① copy into the sourceinsight installation directory;
*②project→open Project, open the base project;
*③ will copy the past Superbackspace.em add to the base project;
*④ restart Sourceinsight;
*⑤options→key Assignments, bind marco:superbackspace to the BACKSPACE key;
*⑥enjoy!!
*
* This program was free software; You can redistribute it and/or modify
* It under the terms of the GNU general public License as published by
* The free software Foundation; Either version 2 of the License, or
* (at your option) any later version.
*
* This program was distributed in the hope that it'll be useful,
* but without any WARRANTY; Without even the implied warranty of
* merchantability or FITNESS for A particular PURPOSE. See the
* GNU general public License for more details.
*
* You should has received a copy of the GNU general public License
* Along with the program; If not, write to the free software
* Foundation, Inc., Temple Place, Suite Boston, MA 02111-1307 USA
*/
Macro Superbackspace ()
{
hwnd = Getcurrentwnd ();
Hbuf = Getcurrentbuf ();
if (Hbuf = = 0)
Stop Empty buffer
Get current cursor postion
IPOs = Getwndselichfirst (hwnd);
Get Current line number
ln = getbuflncur (HBUF);
if ((Getbufseltext (hbuf)! = "") | | (Getwndsellnfirst (hwnd)! = Getwndsellnlast (hwnd))) {
Sth. Was selected, Del selection
Setbufseltext (Hbuf, ""); Stupid & Buggy Sourceinsight:(
Del the ""
Superbackspace (1);
Stop
}
Copy Current Line
Text = Getbufline (hbuf, LN);
Get string length
Len = strlen (text);
//If the cursor is on the start of line, combine with prev line
if (ipos = = 0 | | len = = 0) {
if (ln <= 0)
Stop Top of file
ln = ln-1;//Do not use ' ln--' for compatibility with older versions
Prevline = Getbufline (Hbuf, L n);
Prevlen = strlen (prevline);
//Combine lines
Text = Cat (prevline, text);
Del-Lines
Delbufline (hbuf, LN);
Delbufline (hbuf, LN);
//Insert the combined one
Insbufline (hbuf, Ln, text);
Set the cursor position
Setbufins (hbuf, Ln, prevlen);
Stop
}
num = 1; del one Char
if (IPOs >= 1) {
Process Chinese Character
i = IPOs;
Count = 0;
while (Asciifromchar (text[i-1]) >= 160) {
i = i-1;
Count = count + 1;
if (i = = 0)
Break
}
if (Count > 0) {
I think it might be a two-byte character
num = 2;
This idiot does no support mod and bitwise operators
if ((COUNT/2 * 2 = count) && (IPOs < Len))
IPOs = ipos + 1; Adjust cursor position
}
}
Keeping safe
if (Ipos-num < 0)
num = IPOs;
del Char (s)
Text = Cat (strmid (text, 0, Ipos-num), Strmid (text, IPOs, Len));
Delbufline (hbuf, LN);
Insbufline (hbuf, Ln, text);
Setbufins (hbuf, Ln, ipos-num);
Stop
}
*============================ Superbackspace.em ============================
Attached: Source Insight shortcut Key Daquan
Exit Program: ALT+F4
Repaint screen: Ctrl+alt+space
Completion syntax: ctrl+e
Copy one line: ctrl+k
The character that exactly copies the line to the right of the location: ctrl+shift+k
Copy to clipboard: Ctrl+del
Cut one line: Ctrl+u
Cut the character of the line to the right of the position: CTRL +;
Cut to Clipboard: ctrl+shift+x
Cut one word: Ctrl +,
Indent Left: F9
Indent Right: F10
Insert one line: ctrl+i
Insert New line: Ctrl+enter
Add a line: Ctrl+j
Paste from clipboard: Ctrl+ins
Paste One line: ctrl+p
Repeat Last action: ctrl+y
Re-numbering: ctrl+r
Repeat Input: Ctrl +
Replacement: Ctrl+h
Smart Rename: Ctrl + '
Closing files: ctrl+w
Close all Files: ctrl+shift+w
NEW: CTRL + N
Go to the next file: Ctrl+shift+n
Open: Ctrl+o
Reload file: Ctrl+shift+o
Save As: Ctrl+shift+s
Show file Status: SHIFT+F10
Activation Syntax window: alt+l
Back to the beginning of the line: Home
Back to start of selection: ctrl+alt+[
To the bottom of the block: ctrl+shift+]
To the top of the BLOCK: ctrl+shift+[
Bookmark: ctrl+m
To the bottom of the file: Ctrl+end, CTRL + (KEYPAD) End
To the bottom of the window: (KEYPAD) End (the end of the keypad)
To the tail of a line: End
To the end of the selection section: ctrl+alt+]
To the next function: Keypad +
Previous function: Keypad-
Back: Alt +, Thumb 1 Click
Back to index: alt+m
Forward: Alt +., Thumb 2 Click
Go to line: F5, Ctrl+g
Go to Next change: Alt + (KEYPAD) +
Go to Next Link: shift+f9, ctrl+shift+l
Back to Previous modification: ALT + (KEYPAD)-
Jump to the connection (where the syntax is a serial list): Ctrl+l
Skip to match: ALT +]
Next: PgDn, (KeyPad) PgDn
Prev: PgUp, (KeyPad) PgUp
Scroll up half screen: CTRL+PGDN, CTRL + (KEYPAD) PgDn, (KEYPAD) *
Scroll down half screen: Ctrl+pgup, CTRL + (KEYPAD) PgUp, (KEYPAD)/
Roll Left: Alt+left
Scroll up one line: Alt+down
Scroll down one line: alt+up
Roll Right: Alt+right
Select a piece: ctrl+-
Select a character to the left of the current position: Shift+left
Select a character to the right of the current position: shift+right
Select one line: Shift+f6
Select from the current line to start down: shift+down
Select from the current line to start up: shift+up
Select Previous page: Shift+pgdn, shift+ (KEYPAD) PgDn
Select Next page: Shift+pgup, shift+ (KEYPAD) PgUp
Select the sentence (until you meet A.): Shift+f7, CTRL +.
Select from current location to end of file: Ctrl+shift+end
Select from current position to end of line: Shift+end
Select from current location to start of line: Shift+home
Select from current location to top of file: Ctrl+shift+home
Select a word: shift+f5
Select the left word: ctrl+shift+left
Select the right word: ctrl+shift+right
To top of file: Ctrl+home, CTRL + (KEYPAD) Home
To the top of the window: (KEYPAD) Home
To the left of the word (i.e. to the beginning of a word): Ctrl+left
To the right of the word (to the end of the word): Ctrl+right
Arrange the syntax window (there are three ways to sort by each of the three times): Alt+f7
Removing files: alt+shift+r
Synchronizing files: alt+shift+s
Incremental search (when you search with Ctrl + F, and then press F12 to go to the next match): F12
Replacement file: Ctrl+shift+h
Search backwards: F3
Search in multiple files: ctrl+shift+f
Search ahead: F4
Search selected (for example, select a word, SHIFT+F4 will search for the next): Shift+f4
Search: Ctrl+f
Browse local syntax (pop up the File Syntax List window, if your cursor is placed on a variable/function, etc.), then list the variables/functions in this file): F8
Browse Engineering Syntax: F7, Alt+g
Jump to base type (that is, jump to prototype): Alt+0
Jump to definition (i.e. declaration): ctrl+=, Ctrl+l click (select), ctrl+double L click
Check references: ctrl+/
Syntax information (information that pops up the syntax): alt+/, Ctrl+r Click (SELECT)
Highlight Current Word: Shift+f8
Syntax window (hide/Show Syntax window): Alt+f8
Close window: Alt+f6, CTRL+F4
Last window: Ctrl+tab, Ctrl+shift+tab
"Go" Source Insight Common settings and shortcut keys Daquan