ctags
Generate an index (or tag) file of language objects found in source files for many popular programming languages. More information: https://docs.ctags.io/en/latest/man/ctags.1.html.
- Generate tags for a single file and output them to a file named "tags" in the current directory, overwriting the file if it exists:
ctags
- Generate tags for all files in the current directory and output them to a specific file, overwriting the file if it exists:
ctags -f *
- Generate tags for all files in the current directory and all subdirectories:
ctags --recurse
- Generate tags for a single file and output them with start line number and end line number in JSON format:
ctags --fields=+ne --output-format=json
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
