From 2705d6ea006f41fc9d71fbb16177f6720eb07380 Mon Sep 17 00:00:00 2001 From: Alex Balgavy <8124851+thezeroalpha@users.noreply.github.com> Date: Thu, 20 Feb 2020 16:59:03 +0100 Subject: [PATCH] ctags: add page (#3852) --- pages/common/ctags.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/ctags.md diff --git a/pages/common/ctags.md b/pages/common/ctags.md new file mode 100644 index 0000000000..08029d65ed --- /dev/null +++ b/pages/common/ctags.md @@ -0,0 +1,16 @@ +# ctags + +> Generates an index (or tag) file of language objects found in source files for many popular programming languages. +> More information: . + +- 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 {{path/to/file}}` + +- Generate tags for all files in the current directory, and output them to a specific file, overwriting the file if it exists: + +`ctags -f {{filename}} *` + +- Generate tags for all files in the current directory and all subdirectories: + +`ctags --recurse`