How can I find the references of a class, method, variable in Emacs with Etags?

戏子无情 提交于 2019-12-12 11:24:57

问题


I'd like to find all the references to a class, method, variable in Emacs, the same way I'm able to do it in Eclipse with Ctrl+Shift+G (or Cmd+Shift+G on the Mac) once I've setup my project's ETags.

I can navigate the code fine, but finding references to things is key to understanding large code bases, I'm sure this must be possible in Emacs but I can't find anything about it, maybe an Emacs expert will know right away.

Thanks.


回答1:


I think your best bet is an M-x rgrep . The TAGS file lists the definition of the tags only, not who references it.



来源:https://stackoverflow.com/questions/7592099/how-can-i-find-the-references-of-a-class-method-variable-in-emacs-with-etags

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!