使用exuberant-ctags时你会选择哪些选项?

ant*_*009 17 ctags exuberant-ctags

使用旺盛的ctags 5.8 for gcc 4.4.3 c89

我刚刚开始使用exuberant-ctags,我只是想知道你添加了什么选项.

这是一个列表,我只是想知道添加太多可能是超过杀死.

$ ctags --list-kinds=c
c  classes
d  macro definitions
e  enumerators (values inside an enumeration)
f  function definitions
g  enumeration names
l  local variables [off]
m  class, struct, and union members
n  namespaces
p  function prototypes [off]
s  structure names
t  typedefs
u  union names
v  variable definitions
x  external and forward variable declarations [off]
Run Code Online (Sandbox Code Playgroud)

我打算使用以下内容:

ctags -e --c-kinds=+defgpstux -R
Run Code Online (Sandbox Code Playgroud)

我只是想知道:这有点矫枉过正吗?

c  classes                      No -- I don't have any classes as this is c
d  macro definitions            YES -- I have many macros  
e  enumerators (values inside an enumeration) YES
f  function definitions         YES
g  enumeration names            YES
l  local variables [off]        NO
m  class, struct, and union members NO
n  namespaces NO 
p  function prototypes [off]    YES
s  structure names              YES -- Is there any difference with m
t  typedefs                     YES 
u  union names                  YES
v  variable definitions         NO
x  external and forward variable declarations [off] YES
Run Code Online (Sandbox Code Playgroud)

hha*_*fez 8

我不会说它是矫枉过正,我会打开m虽然(结构和联盟成员搜索非常好)

如果你是从命令行或支持它的编辑器(例如gvim)工作,一般来说Ctags是好的.如果你真的想要高级功能,我建议你选择一个好的IDE.有些事情你根本无法直接使用ctags(例如调用hireachy,或重构一个具有良好C/C++索引支持的好IDE会给你)