etags

etags

The etags command is used to generate tags for C, C++, and Objective-C source files. Tags are markers that can be used to quickly navigate to specific locations in a source file.

For example, to generate tags for all of the C source files in the current directory, you would use the following command:

etags -R *.c

To generate tags for all of the C and C++ source files in the current directory, you would use the following command:

etags -R *.c *.cpp

To list the files that will be tagged, you would use the following command:

etags -l

help

etags [options] [files]

Generate tags for C, C++, and Objective-C source files.

Options:

-f, --format=FORMAT  Set the output format of the tags file.
-l, --list           List the files that will be tagged.
-R, --recursive      Tag all of the files in the specified directory recursively.
-h, --help           Show this help message.

Generates tags for the specified files. If no files are specified, the current directory is used.

breakdown

-f, --format=FORMAT: This option specifies the output format of the tags file. The default format is Emacs.
-l, --list: This option lists the files that will be tagged.
-R, --recursive: This option recursively tags all of the files in the specified directory.
-h, --help: This option shows this help message.

Last updated