Sublime Forum

Indexing Specific Code Files

#1

How do I force CTags plugin installed inside of Sublime Text 2 to index only specific files eg. C++ code files only .cpp, .hpp, .cc etc. ?
Right now, when I right click on the project folder, it says “CTags: Rebuild tags”.

0 Likes

#2

You can set additional ctags options in CTags.sublime-settings like this:

“opts” : “–exclude=*.txt”],

There seems to be an option in ctags to force indexing only one programming language: −−language−force

More options can be found here:

ctags.sourceforge.net/ctags.html

If you need additional information, a good starting point could be here:

github.com/SublimeText/CTags/issues

0 Likes