如何使用 Exuberant ctags 排除多个目录? [英] 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
这篇关于如何使用 Exuberant ctags 排除多个目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!