Emacs 和 Clojure 方法调用层次结构

发布于 2025-01-08 09:18:09 字数 321 浏览 3 评论 0原文

我使用 eclipse 进行 Java 开发,因为它有很多有用的功能。一些经常使用的是“公开声明”和“公开调用层次结构”。

打开声明 - 如果我在某个地方使用某些函数,我只需按 F3(热键)并获取光标指向其定义的文件。

调用层次结构 - 显示调用此方法的树。

对于 clojure 编程,我使用 emacs 作为 IDE。

我感兴趣 Emacs 是否支持此类功能或是否存在一些插件来添加此功能?

注意:我可以对方法名称执行正则表达式搜索以查找定义,但它并不总是给出唯一的结果。

I use eclipse to develop in Java, because it has a lots of useful features. Some frequently used are "Open Declaration" and "Open Call hierarchy".

Open Declaration - If i use somewhere some function i just press F3 (hotkey) and get the file with cursor pointed to its definition.

Call Hierarchy - shows the tree of calls this method.

For programming on clojure i use emacs as IDE.

I'm interested if Emacs support such functionality or exists some plugins to add this?

Note: I can perform regex search on method name to find definition but it not always gives unique results.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

李不 2025-01-15 09:18:09

在带有 SLIME/swank-clojure 的 emacs 中,您可以通过按 M- 转到 var 的定义(包括函数声明)。它调用 slime-edit-definition

在 Cc Cw Cc 下还有一个 slime-who-calls 函数,它可能是调用层次结构的某种替代品

In emacs with SLIME/swank-clojure, you can go to the definition of a var (including function declarations) by pressing M-. which calls slime-edit-definition

There's also a slime-who-calls function under C-c C-w C-c which may be some kind of substitute for call hierarchy

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文