如何使用Etags在Emacs中找到类,方法,变量的引用? [英] How can I find the references of a class, method, variable in Emacs with Etags?

查看:247
本文介绍了如何使用Etags在Emacs中找到类,方法,变量的引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Emacs中找到所有对类,方法,变量的引用,与Eclipse中使用 Ctrl + Shift + G (或< kbd> Cmd + Shift + G 在Mac上)一旦我设置了我的项目的ETag。



我可以浏览代码,但找到引用事情是理解大型代码库的关键,我相信这在Emacs中是必须的,但是我找不到任何东西,也许Emacs的专家会马上知道。



谢谢。

解决方案

我认为你最好的选择是Mx rgrep。 TAGS文件仅列出了标签的定义,而不是谁引用它。


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.

解决方案

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

这篇关于如何使用Etags在Emacs中找到类,方法,变量的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆