📄 ctags.html
字号:
<td width="3%"><p>1.</p></td><td width="3%"></td><td width="62%"><p>Significantly reduces the size of the resulting tagfile.</p></td><tr valign="top" align="left"><td width="32%"></td><td width="3%"><p>2.</p></td><td width="3%"></td><td width="62%"><p>Eliminates failures to find tags because the linedefining the tag has changed, causing the pattern match tofail (note that some editors, such as <b>vim</b>, are ableto recover in many such instances).</p></td><tr valign="top" align="left"><td width="32%"></td><td width="3%"><p>3.</p></td><td width="3%"></td><td width="62%"><p>Eliminates finding identical matching, but incorrect,source lines (see <b>BUGS</b>, below).</p></td><tr valign="top" align="left"><td width="32%"></td><td width="3%"><p>4.</p></td><td width="3%"></td><td width="62%"><p>Retains separate entries in the tag file for lines whichare identical in content. In <i>pattern</i> mode, duplicateentries are dropped because the search patterns theygenerate are identical, making the duplicate entriesuseless.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="32%"></td><td width="68%"><p>However, this option has one significant drawback:changes to the source files can cause the line numbersrecorded in the tag file to no longer correspond to thelines in the source file, causing jumps to some tags to missthe target definition by one or more lines. Basically, thisoption is best used when the source code to which it isapplied is not subject to change. Selecting this option typecauses the following options to be ignored:<b>−BF</b>.</p></td></table><!-- TABS --><table width="100%" border=0 rules="none" frame="void" cols="4" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="11%"><p><i>pattern</i></p></td><td width="3%"></td><td width="68%"><p>Use only search patterns for all tags, rather than theline numbers usually used for macro definitions. This hasthe advantage of not referencing obsolete line numbers whenlines have been added or removed since the tag file wasgenerated.</p></td><tr valign="top" align="left"><td width="18%"></td><td width="11%"><p><i>mixed</i></p></td><td width="3%"></td><td width="68%"><p>In this mode, patterns are generally used with a fewexceptions. For C, line numbers are used for macrodefinition tags. This was the default format generated bythe original <b>ctags</b> and is, therefore, retained as thedefault for this option. For Fortran, line numbers are usedfor common blocks because their corresponding source linesare generally identical, making pattern searches useless forfinding all matches.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>−−extra</b>=<i>[+|−]flags</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Specifies whether to include extra tag entries forcertain kinds of information. The parameter <i>flags</i> isa set of one-letter flags, each representing one kind ofextra tag entry to include in the tag file. If <i>flags</i>is preceded by by either the ’+’ or’−’ character, the effect of each flag isadded to, or removed from, those currently enabled;otherwise the flags replace any current settings. Themeaning of each flag is as follows:</p></td></table><!-- TABS --><table width="100%" border=0 rules="none" frame="void" cols="4" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>f</i></p></td><td width="4%"></td><td width="71%"><p>Include an entry for the base file name of every sourcefile (e.g. "example.c"), which addresses the firstline of the file.</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>q</i></p></td><td width="4%"></td><td width="71%"><p>Include an extra class-qualified tag entry for each tagwhich is a member of a class (for languages for which thisinformation is extracted; currently C++, Eiffel, and Java).The actual form of the qualified tag depends upon thelanguage from which the tag was derived (using a form thatis most natural for how qualified calls are specified in thelanguage). For C++, it is in the form"class::member"; for Eiffel and Java, it is in theform "class.member". This may allow easierlocation of a specific tags when multiple occurrences of atag name occur in the tag file. Note, however, that thiscould potentially more than double the size of the tagfile.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>−−fields</b>=<i>[+|−]flags</i></p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Specifies the available extension fields which are to beincluded in the entries of the tag file (see <b>TAG FILEFORMAT</b>, below, for more information). The parameter<i>flags</i> is a set of one-letter flags, each representingone type of extension field to include, with the followingmeanings (disabled by default unless indicated):</p></td></table><!-- TABS --><table width="100%" border=0 rules="none" frame="void" cols="4" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>a</i></p></td><td width="4%"></td><td width="71%"><p>Access (or export) of class members</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>f</i></p></td><td width="4%"></td><td width="71%"><p>File-restricted scoping [enabled]</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>i</i></p></td><td width="4%"></td><td width="71%"><p>Inheritance information</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>k</i></p></td><td width="4%"></td><td width="71%"><p>Kind of tag as a single letter [enabled]</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>K</i></p></td><td width="4%"></td><td width="71%"><p>Kind of tag as full name</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>l</i></p></td><td width="4%"></td><td width="71%"><p>Language of source file containing tag</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>m</i></p></td><td width="4%"></td><td width="71%"><p>Implementation information</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>n</i></p></td><td width="4%"></td><td width="71%"><p>Line number of tag definition</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>s</i></p></td><td width="4%"></td><td width="71%"><p>Scope of tag definition [enabled]</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>S</i></p></td><td width="4%"></td><td width="71%"><p>Signature of routine (e.g. prototype or parameterlist)</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>z</i></p></td><td width="4%"></td><td width="71%"><p>Include the "kind:" key in kind field</p></td><tr valign="top" align="left"><td width="23%"></td><td width="2%"><p><i>t</i></p></td><td width="4%"></td><td width="71%"><p>Type and name of a variable or typedef as"typeref:" field [enabled]</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Each letter or group of letters may be preceded by either’+’ to add it to the default set, or’−’ to exclude it. In the absence of anypreceding ’+’ or ’−’ sign,only those kinds explicitly listed in <i>flags</i> will beincluded in the output (i.e. overriding the default set).This option is ignored if the option<b>−−format</b>=<i>1</i> has been specified. Thedefault value of this option is <i>fks</i>.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="89%"><p><b>−−file−scope</b>[=<i>yes</i>|<i>no</i>]</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="18%"></td><td width="82%"><p>Indicates whether tags scoped only for a single file(i.e. tags which cannot be seen outside of the file in whichthey are defined, such as "static" tags) should beincluded in the output. See, also, the <b>−h</b>option. This option is enabled by default.</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -