You are on page 1of 15

SourceInsight

2009-08-18 07:26 2798 (1)


http://blog.csdn.net/Jupin/archive/2007/10/19/1832536.aspx
-
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

SI
Options/Document Options Font Options Screen Fonts
SI Verdana
CourierNew Courier

Options/Style Properties (=) Parent


Style Pick( ON/OFF )


( ) xxx Window Properties
Back Color SI
Special Window Color

Options/Document Options Auto Indent Auto Indenting


Auto Indent Type Smart Smart Indent Options

while (1)
{
I
}

while (1)
{
I
}

Options/Document Options Show line numbers Show


right margin

SI

F5

Shift+F8

Ctrl+

Ctrl+F

F3

F4

F7
Browse Project Symbols
Ctrl+M

Options/Key Assignments Key Assignments

Edit: Drag Line Down

Edit: Drag Line Up

Edit: Join Lines

SI Marco ()
( Marco )
-

SI

1. Loopup References
Search/Lookup References Ctrl+/ R
Loopup References Search Method
Simple StringRegular Expression Keyword Expression Look Up Reference Simple
String _upap || u
Regular Expression
Keyword Expression Look Up Reference
SI

2. Search Files
Search/Search Files Ctrl+Shift+F Search Files
File Name Options
Include Subdirectiories
3. Search Project
Search/Search Project Search Project Loopup
References

1.
Search/Replace Ctrl+H Replace Search
Selection Confirm Replacements

2.
Search/Replace Files Ctrl+Shift+H Replace Files
New () Search Files

SI Alt

Smart Rename
Smart Rename Ctrl+' Smart Rename

Renumber
Ctrl+R Renumber

array[0] = 1;
array[1] = 2;
array[2] = 3;

array[0]
array[1]
array[2]
array[3]

=
=
=
=

0;
1;
2;
3;

array[0] = 1; array[0] = 0;
Renumber 0

Edit Condition

#ifdef DEV1
/* DEV1 */
#else
/* */
#endif
DEV1 Edit Condition
Conditional Parsing DEV1 True #ifdef DEV1 #if 1
#else Flase #ifdef DEV1

-
1-SI
SI

Character

Matches

^ ()
.

[abc]

abc

[^abc]

abc

/t

tab

/s

/w

( tab )


/(/)

1 abc/(xyx/) abcxyz 1 xyz


/1 /<number><number>
/(abc/)/(xyz/)/2/1 abcxyz 1 abc 2 xyz
2 1 (/2/1) xyzabc
mytrace
mytrace("Create parameter list... ");

^/(.*/)/(//*/)/(.*mytrace.*/)/(/*//)___FCKpd___6nbsp;==> /1/3

^/(.*/)/(mytrace/)/(.*/)___FCKpd___7nbsp;==> /1/*/2/3*/

2-SI
SI
( SI )
utils.em
, ()

1. Project/Open Project...
Base ("/Source Insight/Projects/Base")
2. Project/Add and Remove Project Files...
( utils.em)
3. Options/Menu Assignments
Menu Assignments Command Macro.
InsFileHeaderInsFunHeaderInsHeaderDefInsIfdef AutoExpand (
) AutoExpand switch switch

switch (###)
{
case
break;

default:
}
InsFunHeader
int nOpenConfigFile(char *pchMemConfig, char *pchFlashConfig,
int nSize, int nMode)
{
I
}

/******************************************************************************
* nOpenConfigFile * DESCRIPTION:*
* Input: N/A
* Output: N/A
* Returns: N/A
*
* modification history
* -------------------* 1.00, Apr 19, 2007, T357 written.
* -------------------******************************************************************************/
T357 utils.em
3-

Source Insight( Macro )

Create by LATEX From CTEX

Footnotes:
qiupingwu@gmail.com2

3 4
1

5
#error #warning 6

--------------------------------------------------------http://blog.csdn.net/flyyanqu/archive/2008/03/27/2222799.aspx
1 tab

1Options PreferencesTyping
Typing tab indents lineregardless of selection tab
Typing tab replaces current selection tab
2Options Document Options
c Editing Options tab width=2 Editing Options Expand tabs
tab 2
3Options Document Options Auto Indent
Smart Indent Open Brace Indent Close Brace
SIS HELP OK
Auto Indent SMART C , , IF, WHILE, SWITCH ,

Indent Open Brace Indent Close Brace , "}",


"{" Indent Open
Brace
2
SIS PROJECT ADD TREE
TREE .inc .asm .s SIS .s
DOS EDIT Options->Document Options
Document Type x86 Asm Source File File filter *.asm
*.inc*.s CLOSE *.s ADD TREE
PROJECT

3
Options Preferences Typing Auto Completion Use automatic symbol completion
window SIS
Options Document OptionsEditing Options Allow auto-complete
Auto Completion
4 +-*/
Options Key assignments Scroll Scroll Half Page Up/
Scroll Scroll Half Page Down * Function Function Up-
Function Function down+
5 ctrl+a
save save all ctrl+shift+a select select all ctrl +a
6
SIS VERDANA VERDANA VERDANA

llllllllll
MMMMMMMMMM
10 . VERDANA
DOS sysfixed
Courier New
SourceInsight
1 Source Link
SourceLink
File, then lineLine, then file
Error d:tcsrcq5.c 18: Lvalue required in function
jsSort SourceInsight SourceLink d:tcsrcq5.c
18
1.1 SourceLink

Search Parse Source Links


OKSIS SourceLink
1.2 SourceLink
Parse Source Links
SourceLink
1.3 SourceLink
Custom Command Parse Links in Output
Source Insight
SIS SourceLink link

2 Replace VS Context-Sensitive Smart Rename


2.1 Replace
ctrl+H
Search Selection
ctrl+H WholeFile
Files
2.2 Context-Sensitive Smart Rename
Smart Rename Ctrl+
SourceInsight search index Smart
Rename Search Results SourceLink

Smart Rename symbol Smart Reference Matching Smart


Rename

Smart Rename
Old Name
Source Insight

Old Name

+DocDraw.paintStruc
DocDraw paintStruc
New Name
Output Search Results Search
Results
Windows ctrl+tab
SourceLink
Confirm Each Replacement
Skip Comments

Smart Rename
Smart Reference Matching Old Name
Smart Reference Matching
3 SourceInsight
3.1 SourceInsight


SourceInsight
Table 4.3: Regular Expression Characters
Character

Matches

^ (at the beginning

beginning of line^Hello Hello

only)
.

any single character

[abc]

any single character that belongs to the set abc

[^abc]

any single character that does not belong to the set


abc

zero or more occurrences of the preceding character

one or more occurrences of the preceding character

a tab character

a space character

white space (a tab or a space character)

the end of the line TRUE$ TRUE

( ) Group #nn=1,2,

abc(xyz) abcxyz xyz group#1


21 (abc)(xyz) xyzabc
3.2 tc
tc d:tctc d:tcsrc
qn.c qtn.c n=1,2,
Tc
Error d:tcsrcq5.c 18: Lvalue required in function jsSort
d:tcsrcq5.c 18 SourceInsight
d:tcsrcq5.c 18
([1-9][0-9]*)
s([1-9][0-9]*)
(d:tcsrc[qQ][tT][1-9][0-9]*.[cC])

(d:tcsrc[qQ][tT]*[1-9][0-9]*.[cC])s([1-9][0-9]*)

3.3 javac
JAVA_HOME c:jdk java d:javasrc qn.java qtn.java n=1,2,

JDK
D:javasrcQ3.java:3: ';' expected

([dD]:javasrc[qQ][tT]*[1-9][0-9]*.java):([1-9][0-9]*)

SIS

SIS
SourceLink Sort

Options Custom Command


Add Commands
Run
Dir
Output Capture Output Paste Output
Control Group Save Files FirstSIS
Control Group Pause When DoneSIS
Source Links in Output Parse Source Links?/p>
source insight

:http://blog.csdn.net/Jupin/archive/2005/02/04/281020.aspx
:
, ,
.
:
1. Project->Open Project... Base ("/Source Insight/Projects/Base");
2. Project->Add and Remove Project Files... ( Gaoke.em);
3. Options->Menu Assignments Menu Assignments , Command Macro,
, .
/**/

------------------------------------------------------http://www.cnblogs.com/walzer/archive/2006/02/05/325587.html
1. SMART TAB . .
PROJECT Options->Document Options
Document Type C Source File C++ Source File Auto Indent
Smart Indent Open Brace Indent Close Brace
SIS HELP OK.
Auto Indent SMART : C , , IF, WHILE, SWITCH ,
.
indent Open Brace Indent Close Brace : , "{""}",

2. TAB 4 SPACE
TAB SIS Tab
Width=4, TAB
Col=5 SIS PB SIS
PB Options->Document Options Editing
Options Expand tabs OK TAB SIS
expend tab expend shrink

3. , SIS PROJECT ADD TREE TREE


, .inc .asm , .s . SIS .s
, DOS EDIT Options->Document Options
Document Type x86 Asm Source File File filter *.asm;*.inc;
*.s; CLOSE . . *.s ADD TREE
PROJECT .

You might also like