I use Kubuntu LTS as my OS. How to use ctags in Kate?
I selected ctags in the plugin manager window, so that now, by right clicking on any word of my code few ctags options appear. Namely: "go to declaration", "go to definition", "look up". But choosing one of these options nothing happens.
I think I did something wrong in the configuration: what should I write in the "ctags database" and in the "index targets" boxes?
Once you have CTags installed
Activate the plugin by going to Settings -> Configure Kate...
Then when the window pops up, click Application -> Plugins and check "CTags"
Next in Kate's Index Targets tab pane, click Add and enter the
/path/to/project/root
, then click Update IndexNow you will be able to use the CTags.
Notice the Database tab pane is where you can set the CTags command. See the man pages for options. Generally, I like to exclude my dependency package folders by adding:
No need to put anything in the "CTags Database File" field because Kate will automatically generate this file when you click Update Index
Note that you can, but do not need to create a
.kateproject
file to use the CTags.First you need to make sure you have ctags installed:
Create a ".kateproject" project file in the folder where your code is (see http://forum.kde.org/viewtopic.php?f=25&t=93570 for more info):
e.g. This the contents of one I set up recently:
Then open a file within the project (you don't open the project directly) and ctags should start working.