📄 7-editor.mht
字号:
tool=20
you are using.</P>
<H4 class=3DHeading3><A name=3DpgfId-897067></A><A =
name=3Dmarker-1053358></A>Find=20
dialog</H4>
<P class=3DBody><A name=3DpgfId-897068></A>To find a specific string or =
pattern in=20
the text file, from the <SPAN class=3DBold>Search</SPAN> menu, select =
<SPAN=20
class=3DBold>Find</SPAN>. </P>
<DIV><IMG=20
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/editor-7.gi=
f">=20
</DIV>
<P class=3DBody><A name=3DpgfId-897034></A>Type your string or pattern =
into the text=20
box and click the <SPAN class=3DBold>Search </SPAN>button; you can click =
the <SPAN=20
class=3DBold>Search</SPAN> button multiple times to find more instances =
of the=20
string. Deselect <SPAN class=3DBold>Ignore</SPAN> <SPAN =
class=3DBold>case</SPAN> if=20
you want a case-sensitive search. When <SPAN class=3DBold>Regular=20
expression</SPAN> is selected, the pattern is treated as a regular =
expression,=20
and clicking the <SPAN class=3DBold>Search</SPAN> button finds the next =
match for=20
the regular expression. Deselect <SPAN class=3DBold>Forward</SPAN> if =
you wish to=20
search backwards. </P>
<H4 class=3DHeading3><A name=3DpgfId-897049></A><A =
name=3Dmarker-1053360></A>Replace=20
dialog</H4>
<P class=3DBody><A name=3DpgfId-897050></A>To search and replace a =
specific string=20
or pattern in the text file, from the <SPAN class=3DBold>Search</SPAN> =
menu,=20
select <SPAN class=3DBold>Replace</SPAN>. </P>
<DIV><IMG=20
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/editor-8.gi=
f">=20
</DIV>
<P class=3DBody><A name=3DpgfId-897054></A>The <SPAN =
class=3DBold>Replace</SPAN>=20
dialog is similar to the <SPAN class=3DBold>Find</SPAN> dialog. The =
<SPAN=20
class=3DBold>Ignore case</SPAN>, <SPAN class=3DBold>Regular =
expression</SPAN>, and=20
<SPAN class=3DBold>Forward</SPAN> options behave the same way. <SPAN=20
class=3DBold>Search</SPAN> finds the next instance of the pattern. <SPAN =
class=3DBold>Replace</SPAN> replaces the current pattern with the =
pattern in the=20
<SPAN class=3DBold>Replace pattern</SPAN> text box. Select <SPAN=20
class=3DBold>All</SPAN> to replace all occurrences of the pattern.</P>
<H4 class=3DHeading3><A name=3DpgfId-897103></A><A =
name=3Dmarker-1098250></A>Find=20
Declaration, Implementation</H4>
<P class=3DBody><A name=3DpgfId-897129></A>If a symbol is selected in =
the <SPAN=20
class=3DBold>Editor</SPAN>, selecting <SPAN class=3DBold>Find =
Declaration</SPAN>=20
switches to the location of the declaration of the symbol, and <SPAN=20
class=3DBold>Find Implementation</SPAN> switches to the location of the=20
implementation of the symbol. </P>
<H3 class=3DLabel><A name=3DpgfId-1049641></A>Note</H3>
<P class=3DNote><A name=3DpgfId-1064506></A>You can also toggle between =
Declaration=20
and Implementation by using the <A name=3Dmarker-1064874></A>keyboard =
shortcut=20
commands <SPAN class=3DBold>Ctrl+Shift+D</SPAN> and <SPAN=20
class=3DBold>Ctrl+Shift+I</SPAN>, respectively.</P>
<H4 class=3DHeading3><A name=3DpgfId-1064509></A><A=20
name=3Dmarker-1064508></A>Grep</H4>
<P class=3DBody><A name=3DpgfId-897104></A><SPAN =
class=3DBold>Grep</SPAN> activates=20
the <SPAN class=3DBold>Grep</SPAN> tool, which allows you to search for =
text in=20
all project files. Select the expression you want to search for and from =
the=20
<SPAN class=3DBold>Search</SPAN> menu select <SPAN =
class=3DBold>Grep</SPAN>.=20
Source-Navigator automatically searches for your text in all project =
files. For=20
more information on Grep, see <A class=3DXRef=20
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/grep.html#=
21607">Grep</A>.</P>
<H4 class=3DHeading3><A name=3DpgfId-897137></A>Go To menu</H4>
<P class=3DBody><A name=3DpgfId-897138></A>When you want to go to a =
specific line in=20
the file, from the <SPAN class=3DBold>Search</SPAN> menu, select <SPAN=20
class=3DBold>Go To </SPAN><EM class=3DArrow>-></EM> <SPAN =
class=3DBold>Go To=20
Line</SPAN>. This allows you to type in the line number you wish to go =
to. <SPAN=20
class=3DBold>Set Mark</SPAN> allows you to set a place in the file you =
wish to=20
come back to later. <SPAN class=3DBold>Go To Mark</SPAN> jumps to the =
last mark=20
you set. <SPAN class=3DBold>Go to Error</SPAN> displays the line that =
caused the=20
build error.</P>
<H3 class=3DHeading2><A name=3DpgfId-896855></A><A =
name=3D40803></A>Editor <A=20
name=3Dmarker-1053126></A>Preferences</H3>
<P class=3DBody><A name=3DpgfId-897145></A>You'll find preference =
settings for the=20
<SPAN class=3DBold>Editor</SPAN> window in the <SPAN =
class=3DBold>Edit</SPAN> tab of=20
the <SPAN class=3DBold>Preferences</SPAN> dialog. To find this =
dialog:</P>
<OL>
<LI class=3DNumbered>
<P class=3DBody><A name=3DpgfId-1099080></A>In the <SPAN =
class=3DBold>Symbol=20
Browser</SPAN>, from the <SPAN class=3DBold>File</SPAN> menu, select =
<SPAN=20
class=3DBold>Project Preferences</SPAN>. In the <SPAN =
class=3DBold>Editor</SPAN>,=20
from the <SPAN class=3DBold>Edit</SPAN> menu, select <SPAN =
class=3DBold>View=20
Preferences</SPAN>. </P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1099081></A>Choose the <SPAN=20
class=3DBold>Edit</SPAN> tab. </P></LI></OL>
<P class=3DFigureTitle><A name=3DpgfId-1071446></A>Edit Tab of the =
Preferences=20
Dialog</P>
<DIV><IMG=20
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/editor-9.gi=
f">=20
</DIV>
<H5 class=3DHeading4><A name=3DpgfId-895206></A>Format</H5>
<P class=3DBody><A name=3DpgfId-895207></A>Tab stop<BR>
<P class=3DBodyHang1>When a tab is inserted, it is this many spaces =
wide.</P>
<P class=3DBody><A name=3DpgfId-895209></A>Auto Indent width<BR>
<P class=3DBodyHang1>When the <SPAN class=3DBold>Enter</SPAN> key is =
pressed, this=20
is the number of spaces inserted at the beginning of the next line. This =
is also=20
the number of spaces inserted by indent (from the <SPAN =
class=3DBold>Edit</SPAN>=20
menu, select <SPAN class=3DBold>Indent Text</SPAN>) and deleted by =
outdent (from=20
the <SPAN class=3DBold>Edit </SPAN>menu, select <SPAN =
class=3DBold>Outdent=20
Text</SPAN>) when reformatting source code.</P>
<P class=3DBody><A name=3DpgfId-895210></A>Wrap by<BR>
<P class=3DBodyHang1>This controls where the <SPAN =
class=3DBold>Editor</SPAN> breaks=20
a line that is longer than the width of the window. </P>
<H5 class=3DHeading4><A name=3DpgfId-895211></A>Work</H5>
<P class=3DBody><A name=3DpgfId-895212></A>Create <KBD =
class=3DCode>*.bak</KBD>=20
Files<BR>
<P class=3DBodyHang1>If selected, the <SPAN class=3DBold>Editor</SPAN> =
creates=20
backup files whenever you save a file.</P>
<P class=3DBody><A name=3DpgfId-1053232></A>Output File Translation:<BR>
<P class=3DBodyHang1>End-of-lines of source files may be represented =
differently=20
on different platforms:</P>
<UL>
<LI class=3DBullet>
<P class=3DBody><A name=3DpgfId-1053233></A><SPAN =
class=3DBold>Keep</SPAN> retains=20
the original file's end-of-line characters; this is set by default. =
</P>
<LI class=3DBullet>
<P class=3DBody><A name=3DpgfId-1053241></A><SPAN =
class=3DBold>Auto</SPAN> saves the=20
file with your current platform's end-of-line characters. </P>
<LI class=3DBullet>
<P class=3DBody><A name=3DpgfId-1053261></A><SPAN =
class=3DBold>UNIX</SPAN>, <SPAN=20
class=3DBold>Windows</SPAN>, or <SPAN class=3DBold>Macintosh</SPAN> =
sets the=20
end-of-line characters to match the platform you choose, regardless of =
the=20
platform you're working on. </P></LI></UL>
<P class=3DBody><A name=3DpgfId-895213></A>Bracket match delay<BR>
<P class=3DBodyHang1>Sets the amount of time (in milliseconds) that =
matching=20
brackets should be highlighted.</P>
<P class=3DBody><A name=3DpgfId-895214></A>Right mouse supports<BR>
<P class=3DBodyHang1>If <SPAN class=3DBold>Edit menu</SPAN> is selected, =
you can=20
access some functions, such as <SPAN class=3DBold>Undo</SPAN>, <SPAN=20
class=3DBold>Delete</SPAN>, <SPAN class=3DBold>Cut</SPAN>, <SPAN=20
class=3DBold>Copy</SPAN>, and <SPAN class=3DBold>Paste</SPAN> through a =
right-mouse=20
pop-up menu. </P>
<P class=3DBodyListFollow><A name=3DpgfId-969620></A>If <SPAN=20
class=3DBold>Scrolling</SPAN> is selected, you can scroll the text in =
the <SPAN=20
class=3DBold>Editor</SPAN> using the right-mouse button.</P>
<P class=3DBody><A name=3DpgfId-1053270></A>Translate Tabs to Spaces<BR>
<P class=3DBodyHang1>Selecting this converts all tab characters in the =
file to the=20
number of spaces shown in the <SPAN class=3DBold>Tab Stop</SPAN> box. =
</P>
<P class=3DBody><A name=3DpgfId-1073393></A>Extended toolbar buttons<BR>
<P class=3DBodyHang1>Selecting this adds several new tool buttons to the =
<SPAN=20
class=3DBold>Editor</SPAN> toolbar. For more information, see <A =
class=3DXRef=20
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/editor.htm=
l#26260">The=20
Extended Toolbar</A>.</P>
<P class=3DBody><A name=3DpgfId-1075848></A><A =
name=3Dmarker-1075847></A>External=20
Editor<BR>
<P class=3DBodyHang1>Insert the command line for your favorite editor in =
this text=20
box. See <A class=3DXRef=20
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/editor.htm=
l#28279">Common=20
editor configurations</A> for command line syntax.</P>
<P class=3DBodyListFollow><A name=3DpgfId-1098190></A>Source-Navigator =
can set the=20
position of the cursor in the editor if the editor can be configured by =
command=20
line options. Source-Navigator can perform the following substitutions =
on the=20
command line before it is executed: </P>
<TABLE>
<TBODY>
<TR>
<TD>
<P class=3DCellBody><A name=3DpgfId-1075857></A><KBD =
class=3DCode>%f</KBD>=20
</P></TD>
<TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -