I would like to create a tags file using ctags for a complete source tree. Now I generally would run ctags *.c but the problem is in the top directory, there's no source files.
Also, I'd like it to pick up *.c,*.h,*.cpp & *.hpp files, how can I do this?
You can use ctags --recurse or ctags -R to recursively descend into a directory tree.
If you want to generate tags for c/c++/javascript/java/python files present in your git repo (respecting .gitignore) :
git ls-files | ctags --links=no --languages=c,c++,javascript,java,python -L-
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