1 查看ctags支持的语言
ctags --list-languages
2 查看语言和扩展名的对应关系
ctags --list-maps
3 对当前目录下所有ctags支持的语言格式文件生成tags
ctags -R *
缺点很明显,tags会非常大,tags生成会非常慢,而且代码跳转会卡顿。
4 只对特定文件生成tags
ctags `find -name "*.h"`
ctags -f ./my-tags/sys-tags -I __THROW –file-scope=yes –langmap=c:+.h –languages=c,c++ –links=yes –c-kinds=+p --fields=+S -R C:/llvm/lib/clang/9.0.0/include include "C:/Program Files (x86)/Microsoft Visual Stutio 14.0/VC/include" "C:/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/ucrt" "C:/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/shared" "C:/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/um" "C:/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/winrt"
1 查看ctags支持的语言
ctags --list-languages
- 1
2 查看语言和扩展名的对应关系
ctags --list-maps