📄 tags.html
字号:
<HTML><HEAD><TITLE> Features for Programming </TITLE></HEAD><BODY><A NAME="Finding_Declarations_(ctags)"></A><H2> Finding Declarations (ctags) </H2><P><A NAME="ctags"></A>NEdit can process tags files generated using the Unix ctags command or theExuberant Ctags program. Ctags creates index files correlating names offunctions and declarations with their locations in C, Fortran, or Pascal sourcecode files. (See the ctags manual page for more information). Ctags produces afile called "tags" which can be loaded by NEdit. NEdit can manage any numberof tags files simultaneously. Tag collisions are handled with a popup menu tolet the user decide which tag to use. In 'Smart' mode NEdit will automaticallychoose the desired tag based on the scope of the file or module. Once loaded,the information in the tags file enables NEdit to go directly to thedeclaration of a highlighted function or data structure name with a singlecommand. To load a tags file, select "Load Tags File" from the File menu andchoose a tags file to load, or specify the name of the tags file on the NEditcommand line:</P><P><PRE> nedit -tags tags</PRE></P><P>NEdit can also be set to load a tags file automatically when it starts up. Setting the X resource nedit.tagFile to the name of a tag file tells NEdit tolook for that file at startup time (see "<A HREF="customize.html#Customizing_NEdit">Customizing NEdit</A>"). The file namecan be either a complete path name, in which case NEdit will always load thesame tags file, or a file name without a path or with a relative path, inwhich case NEdit will load it starting from the current directory. Thesecond option allows you to have different tags files for different projects,each automatically loaded depending on the directory you're in when you startNEdit. Setting the name to "tags" is an obvious choice since this is thename that ctags uses. NEdit normally evaluates relative path tag filespecifications every time a file is opened. All accessible tag files areloaded at this time. To disable the automatic loading of tag files specifiedas relative paths, set the X resource nedit.alwaysCheckRelativeTagsSpecs toFalse.</P><P>To unload a tags file, select "Un-load Tags File" from the File menu andchoose from the list of tags files. NEdit will keep track of tags file updatesby checking the timestamp on the files, and automatically update the tagscache. </P><P>To find the definition of a function or data structure once a tags file isloaded, select the name anywhere it appears in your program (see "<A HREF="select.html#Selecting_Text">Selecting Text</A>") and choose "Find Definition" from the Search menu.<P><HR></P><P></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -