The goal of this project is to maintain a common/unified space where people interested in improving ctags can work together. This guide is primarily intended for. The ctags utility shall be provided on systems that support the the Software Development Utilities option, and either or both of the C- Language Development . Contribute to SublimeText/CTags development by creating an account on GitHub . Alternatively, the plugin can be installed manually using one of the following.

Author: Faezuru Molmaran
Country: Dominican Republic
Language: English (Spanish)
Genre: Science
Published (Last): 18 January 2013
Pages: 119
PDF File Size: 14.83 Mb
ePub File Size: 16.14 Mb
ISBN: 881-8-93012-380-1
Downloads: 22780
Price: Free* [*Free Regsitration Required]
Uploader: Mubei

All of manyal information in this tutorial, and lots more advanced information, can be found there. Each kind listed is enabled unless followed by “[off]”.

A few special tags are written into the tag file for internal purposes. Therefore, use new lines to indicate separate command-line arguments.

To clear the mapping for a particular language thus inhibiting automatic generation of tags for that languagespecify an empty extension list e.

Determines the type of EX command used to locate tags in the source file. Despite the wealth of available options, defaults are set so that ctags is most commonly executed without any options e. However, if this option is the first argument on the command line, it will take effect before any options are read from these sources.

This feature is useful when preprocessor macros are used in such a way that they cause syntactic confusion due to their presence. Any name immediately preceding the ” ” will be automatically ignored and the previous name will be used. This option is not supported on all platforms at present.


Note that spaces separating the single-letter options from their parameters are optional. The valid values for type either the entire word or the first letter is accepted are:. Because the intent of this construct is to disable code, the default value of this option is no.

In general, ctags tries to be smart about conditional preprocessor directives. This is guaranteed to always contain the string “Exuberant Ctags”.

It will, however be available for prototypes e. The default tag file created by ctags. On platforms which support it, if the name of a file is not mapped to a language and the file is executable, the first line of the file is checked to see if the file is a “!

S assembly files in the kernel, then tell etags to append the tags in those files to the TAGS file.

Only options will be read from these files. Find the first definition of TAG.

ctags(1) – Linux man page

When you’re done, instead of jumping back up in the tag stack, close the new buffer C-x k. Read additional options from file. If the first character in the list is a plus sign, then the extensions in the list will be appended to the current list; otherwise, the list will replace the current list. This may allow easier location of a specific tags when multiple occurrences of a tag name occur in the tag file.

Indeed, this is the best way of working around a number of problems caused by the presence of syntax-busting macros in source files see CAVEATSbelow.


This option is on by default.

To map makefiles e. You should still find Etags useful for jumping to function definitions and less-commonly-used structs. This option may be specified as many times as desired. For C, line numbers are used manuaal macro definition tags. In addition, information on the scope of the tag definition may be available, with the key portion equal to some language-dependent construct name and its value the name declared for that construct in the program. Note that this indicates a preference only and does not guarantee skipping code within an ” if 0″ branch, since the fall-back algorithm used to generate xtags when preprocessor conditionals are too complex follows all branches of a conditional.

ctags.1p – Linux manual page

Note You may see messages like “Warning: If the sort utility of the operating system is being used, it will generally observe this variable also. For example, a tag generated for majual C structure member would have a scope looking like “struct: Only options will be read from this variable.

Thus, it becomes simple to replace the current list with a new one, or to add or remove languages from the current list. Alternatively, if ctags is invoked by a name containing the string “etags” either by renaming, or creating a link to, the executableetags mode will be enabled.

The default is “all”, which is also accepted as a valid argument.