[Previous] [Contents] [Next]


Generate tags files (POSIX)


ctags files...


The pathnames of the files that are to be scanned for tags.


The ctags utility generates a file called tags from a group of C source files.

Each C source file is scanned for #define statements and function definitions. The name of the macro or function becomes the name of a tag. For each tag, a line is added to the tags file, which contains:

The less, more, vi, and vedit utilities can use entries in the tags file to locate and display a definition.


Generate tags for all the C source and header files in the current directory:

    ctags *.[ch]

Contributing author:

Steve Kirkendall; ctags is part of the elvis suite.

See also:

less, more, vedit, vi

[Previous] [Contents] [Next]