Excluding directories in Exuberant CTags

前端 未结 2 1613
长情又很酷
长情又很酷 2020-12-31 03:54

I\'m working with a very large code base and I find it useful to be selective about which directories are included for use with Exuberant Ctags.

The --exclude<

2条回答
  •  北海茫月
    2020-12-31 04:32

    At some point it might be easier to define the list of files you do want indexed; save that list to a file, and use ctags -L to index just the chosen few.

    This lets you use find(1) to prune the directories you don't want to index, e.g.:

    find . -path ./Documentation -prune -o -print > indexme
    

    would skip all the files in all subdirectories of ./Documentation.

提交回复
热议问题