How to create ctags only for c and h files in code

I have compiled code. If I try to generate tags using 'usr / bin / ctags -R *', it will include all files c, h, object, etc. Thus, it takes a lot of time as well as memory. Could you let me know how to create tags only for c / h files.

+5
source share
2 answers

Use the -languages ​​option:

ctags --languages ​​= C

+12
source

I would try "man ctags" and read the options.

or you can use shell shell like:

ctags `find . -name "*.[ch]" -print` 

or something like that

-2
source

All Articles