Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using kate editor for c dev (with the ctags plugin)

Tags:

c

ctags

kate

I just started using the kate editor (was using vim) for c dev. I used ctags a lot with vim. So I would like to have the same with the kate editor. I enabled the Ctags plugin in the plugins list. It generates the tags file (.ctagsdb), but it does not load the tags in the "tags tab" when I want to look for the tags I have to manually type in the LookUP field for the tag to show up. It does not populate the tags. I am not even able to use the CTags menu item.

Can someone tell me how to get the CTags working. or if there is a better plugin to do this. Or is this the way it "normally" works.

Thanks.

like image 916
yaami Avatar asked Jan 24 '11 16:01

yaami


2 Answers

First of all does the ctags database include tags of your project/file?
If not then go to the "Index Targets" tab and add your project's path, then click update index. (also make sure you have ctags installed)

Now in the source code find a symbol you want to look up right click on it and go CTags->Lookup (or click on it and Alt+4).
You can also go to the Declaration with Alt+2 or to the Definition with Alt+3.
After watching the Definition/Declaration/Whatever you can go back where you were with Alt+1.

like image 170
zakkak Avatar answered Oct 04 '22 22:10

zakkak


Make sure that you have installed ctags

sudo apt-get install ctags

Good Luck :)

like image 37
Sandeep Bhat Avatar answered Oct 04 '22 20:10

Sandeep Bhat