diff --git a/pages/common/ctags.md b/pages/common/ctags.md index 08029d65ed..1174112aa7 100644 --- a/pages/common/ctags.md +++ b/pages/common/ctags.md @@ -14,3 +14,7 @@ - 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 {{path/to/file}}`