开发者

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

I just started using the 开发者_如何学JAVAkate 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.


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.


Make sure that you have installed ctags

sudo apt-get install ctags

Good Luck :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜