如何使用旺盛的ctag排除多个目录? [英] How to exclude multiple directories with Exuberant ctags?
问题描述
我已经看过并尝试使用旺盛的ctags,但对我想做的事却没有运气.我在Mac上尝试在一个项目中工作,我想排除.git,node_modules,test等目录.当我尝试使用ctags -R --exclude=[.git, node_modules, test]
之类的东西时,我什么也没有得到.我真的只需要在我的核心目录中运行它.关于如何实现此目标的任何想法?
I have looked and tried to use exuberant ctags with no luck with what I want to do. I am on a mac trying to work in a project where I want to exclude such directories as .git, node_modules, test, etc. When I try something like ctags -R --exclude=[.git, node_modules, test]
I get nothing in return. I really only need to have it run in my core directory. Any ideas on how to accomplish this?
推荐答案
--exclude
选项不包含文件列表.根据ctags
的手册页,可以根据需要多次指定此选项."因此,就像这样:
The --exclude
option does not expect a list of files. According to ctags
's man page, "This option may be specified as many times as desired." So, it's like this:
ctags -R --exclude=.git --exclude=node_modules --exclude=test
这篇关于如何使用旺盛的ctag排除多个目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!