Co robi CTAGS użycie. Konsola may be specified. ctags understands many programming languages.

Czy przydatne?

Polecenie ctags

Wykonanie, użycie: Create a list of function and macro names defined in a programming source file. More than one file may be specified. ctags understands many programming languages, including C, C++, FORTRAN, Java, Perl, Python, flex, yacc, and bison. The output list (named tags by default) contains lines of the form:

name file context

where name is the function or macro name, file is the source file in which name is defined, and context is a search pattern that shows the line of code containing name. After the list of tags is created, you can invoke vi on any file and type:

:set tags=tagsfile :tag name

This switches the vi editor to the source file associated with the name listed in tagsfile (which you specify with -t).

etags produces an equivalent file for tags to be used with Emacs

Opcje wykonania ctags w konsoli

-a

Append tag output to existing list of tags.

-e

Create tag files for use with emacs.

-h extensionlist

Interpret files with filename extensions specified in extensionlist as header files. The default list is ".h.H.hh.hpp.hxx.h++.inc.def". To indicate that files without extensions should be treated as header files, insert an additional period in the list before another period or at the end of the list, or use just a period by itself. To use this option multiple times and have the specified lists ANDed together, use a plus sign as the first character in the list. To restore the default, use the word "default".

-n

Use numeric ex commands to locate tags. Same as --excmd= number.

-o file, -f file, --output=file

Write to file.

--packages-only

Include tag entries for members of structure-like constructs.

-R

Recursively read files in subdirectories of the directory given on the command line.

-u

Don't sort tag entries.

-x

Produce a tabular listing of each function, and its line number, source file, and context.

-B

Search for tags backward through files.

-I tokenlist

Specify a list of tokens to be specially handled. If tokenlist is given as a file, use ex pattern commands to locate tags. Same as --excmd=pattern.

-N

Use ex pattern commands to locate tags. Same as --excmd= pattern.

-S, --ignore-indentation

Normally ctags uses indentation to parse the tag file; this option tells ctags to rely on indentation less.

-T, --typedefs-and-c++

Include tag entries for typedefs, structs, enums, unions, and C++ member functions.

-V, --version

Print the version number and exit.

Przykłady ctags działanie w Słownik polecenie C

Przykład CTAGS użycie :
Jak użyć administration command. Normally started in a system startup file. Execute commands at scheduled times, as specified in users' files in /var/spool/cron . Each file shares its name with the user co znaczy.
Przykład CTAGS użycie :
Jak użyć columns or fields from one or more files . In the following options, list is a sequence of integers. Use a comma between separate values, and a hyphen to specify a range (e.g., 1-10 ,15 ,20 or 50 krzyżówka.
Przykład CTAGS użycie :
Jak użyć redundancy check (CRC) checksum for all files ; this is used to ensure that a file was not corrupted during transfer. Read from standard input if the character - is given or no files are given co to jest.
Przykład CTAGS użycie :
Jak użyć mode (permissions) of one or more files . Only the owner of a file or a privileged user may change the mode. mode can be numeric or an expression in the form of who opcode permission . who is słownik.
Przykład CTAGS użycie :
Jak użyć one or more files and print them on standard output. Read standard input if no files are specified or if - is specified as one of the files; input ends with EOF. You can use the > operator to czym jest.