Skip to content

Ctags

Ctags generates an index (or tag) file of language objects found in source files that allows these items to be quickly and easily located by a text editor or other utility. A tag signifies a language object for which an index entry is available (or, alternatively, the index entry created for that object).

Install

Debian 기반:

apt install exuberant-ctags

How to use

기본적으로 생성되는 파일명 tags이며 -f옵션으로 파일명을 지정할 수 있다.

$ ctags -f mytags

하위 디렉토리에 대하여 tags 파일 생성이 필요한 경우 -R옵션을 사용한다.

$ ctags -R

Windows에서 파일 경로를 인자로 넘겼을 때 정상적으로 DB가 생성되지 않는다면 디렉터리 구분자를 \대신 /를 사용해야 한다.

Options

--tag-relative=no
TAG의 파일 경로를 절대경로 위치로 입력한다. 이 옵션은 기본적으로 yes로 설정되어 있다.

Exuberant Ctags

Exuberant Ctags is a multilanguage reimplementation of the Unix ctags utility. Ctags generates an index of source code definitions which is used by numerous editors and utilities to instantly locate the definitions.

Universal Ctags

Universal-ctags는 Sourceforge 영역에 존재했던 것에서 개발을 계속하는 것을 목표로 합니다. #Exuberant Ctags 저장소는 Reza Jelveh에 의해 시작되었으며 나중에 universal-ctags 조직으로 옮겨졌습니다.

프로젝트의 목표는 ctags 개선에 관심이 있는 사람들이 함께 일할 수 있는 공통/통일 공간을 준비하고 유지하는 것입니다.

See also

Favorite site