From bde43e80e89553f3236eb630bcb6be9587d55e08 Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Mon, 26 Sep 2022 20:44:09 +0800 Subject: [PATCH] ctags: add json output example (#8425) --- pages/common/ctags.md | 4 ++++ 1 file changed, 4 insertions(+) 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}}`