LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1585|回复: 2

ctags如何建立当前目录下所有文件(包括子目录)的tags?

[复制链接]
发表于 2008-4-28 22:15:07 | 显示全部楼层 |阅读模式
我看网络上说:
“$ ctags –R*”:“-R”表示递归创建,也就包括源代码根目录(当前目录)下的所有子目录。“*”表示所有文件。

但我在$ctags --help中看到的是:
Usage: ctags [options] [[regex-option ...] file-name] ...

These are the options accepted by ctags.
You may use unambiguous abbreviations for the long option names.
       …………
-r /REGEXP/, --regex=/REGEXP/ or --regex=@regexfile
        Make a tag for each line matching pattern REGEXP in the following
        files.  {LANGUAGE}/REGEXP/ uses REGEXP for LANGUAGE files only.
        regexfile is a file containing one REGEXP per line.
        REGEXP is anchored (as if preceded by ^).
        The form /REGEXP/NAME/ creates a named tag.
        For example Tcl named tags can be created with:
        --regex="/proc[ \t]+\([^ \t]+\)/\1/."
        …………
-R, --no-regex
        Don't create tags from regexps for the following files.

如何是$ctags */*,这是不是只是两层目录,那更深的呢?
到底怎么才行啊?有没有谁知道呢?谢谢

我的是Ubuntu 6.06 LTS - Dapper Drake - 该版本发布于2006年6月

VIM - Vi IMproved 7.0

root@MagicWorld:/usr/g/snort-2.8.0.2/src# ctags -V
ctags (GNU Emacs 21.4)
Copyright (C) 1999 Free Software Foundation, Inc. and Ken Arnold
This program is distributed under the same terms as Emacs
发表于 2008-4-29 13:19:17 | 显示全部楼层
emacs 中的 ctags 和一般的 ctags 不太一样, 楼主在网上查到的是独立的 ctags, 但是使用的是 emacs 中的 ctags
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-29 15:50:58 | 显示全部楼层
thank you~~~

我用的ubuntu,里面居然没有自带ctags……现在从sf上下了个安上,好了,:)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表