Question

When I use ctags in vim, I run into this problem:

InputDevice *device = mdev; device->process(...);

when i wanna see the definition of process of class InputDevice, ctags can't give a solution and it shows so many tags. While in source insight, it can just jump to the correct definition place because it finds tag "device->process" not only tag "process".

I found cscope can't do it eigher.

Is there a method which can find the right tag definition?

Was it helpful?

Solution

Two way

  1. ctags

    you can jump by "Ctrl + ]"

    but you should use "--lang-kinds" with "m" to create tag file. more info with "ctags --list-kinds".

  2. eclim

    In default mapping, you can jump by "Enter" key

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top