Enable/Disable CTags Indexer

Users can choose which indexer they wish to use on a specific project by bringing up the project properties and
selecting an indexer from the available indexer list.

CTags Indexer Properties

Enable CTags Indexer

Enabling the  indexer

To enable the CTags Indexer:
  1. Right click on the project and select Properties > C/C++ Indexer
  2. Select the CTags Indexer (declarations only) from the list of available indexers
  3. Click OK
This will throw away whatever old index was around for the current project and start a new reindex of the entire project using the CTags
indexer and whatever options are present on the property page.

CTags Location

By default, the CTags Indexer expects that Ctags has been added to the path and will try to use it. To use another CTags:

  1. Right click on the project and select Properties > C/C++ Indexer
  2. Click the Use the specified CTags button
  3. Click on the Browse... button
  4. Navigate to the location of the desired CTags
  5. Select the CTags executable and click Open
The path of  the given CTags executable is displayed in the CTags location box. When indexing the current project from now
on, the CTags indexer will now use whatever CTags is displayed on the path.

If the CTags indexer can't find the location of your CTags or can't use the specified CTags it will let you know in the form
of a warning marker.

CTags missing

Include Files

Checking this box will cause the CTags indexer to index all of the files on the project's include paths.

CTags File

By default, the CTags indexer runs CTags on your project and stores the output in an internal file before adding the entries
to the index. If you have an already existing CTag output file, you can get import it into the index. To do this:

  1. Right click on the project and select Properties > C/C++ Indexer
  2. Click the Import existing CTags file button
  3. Browse to the CTags location
  4. Click OK
  5. Close and reopen the project
The CTags Indexer will now attempt to import your CTags file.

Note that the CTags indexer expects a certain format for the CTags file. In order for an external file to be imported
by the CTags indexer, the following conditions must be met:
  1. Exuberant CTags version 5.5.4 was used
  2. The following options are run with CTags:

If the CTags indexer cannot parse the given CTag file it will tell you what the problem is in the form of a warning marker:

CTag wrong format

Disable CTags Indexer


To disable the CTags Indexer:
  1. Right click on the project and select Properties > C/C++ Indexer
  2. Select the No Indexer (search based features will not work correctly)
  3. Click OK
This will stop any ongoing indexes and disconnect the project from reacting to resource changes.

Related concepts
C/C++ search
C/C++ Indexer
C/C++ Indexer Opening or Closing a project
C/C++ Indexer Progress Bar

Related tasks
Selection Searching for C/C++ elements
Enable/Disable the Full C/C++ Indexer
Indexing a large project
Setting Source Folders

Related reference
C/C++ search page, Search dialog box
C/C++ Project Properties, Managed, Indexer
C/C++ Project Properties, Standard, Indexer

 

IBM Copyright Statement