I want to use ctags to create tags for a project, that is distributed over several subfolders.
I know that this can be done using ctags -R *
.
Is it possible to restrict the generation to only use files with the same suffix? For example it should create tags for all *.c
files but not for *.h
files or Makefiles.
Thank you!
I usually use
find -name '*.c' -exec ctags {} +
If you use Universal Ctags you can use --languages
option. Example for parsing only php files is
ctags -R --languages=php
You can combine multiple languages using comma. To get a list of supported languages use --list-languages
option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With