我怎样才能最好地在 Emacs 中浏览源代码? [英] How can I best do source code browsing inside Emacs?

查看:19
本文介绍了我怎样才能最好地在 Emacs 中浏览源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个工作流程,我在 shell 中使用 grep 和其他工具在不同的项目中进行搜索,即使我的主编辑器是 emacs.我通常从事我通常不知道的错误修复和源代码的小规模开发,因此搜索代码很重要.我主要使用的语言是 php、ruby、java、perl,有时还有 python.

I have a workflow where I use grep and other tools in a shell for searching in different projects even though my main editor is emacs. I usually work on bug fixing and minor development of source code that is often unknown to me so searching the code is important. The langages I mostly work in are php, ruby, java, perl and sometimes python.

在 emacs 中是否有一些通用的 IDE 扩展可以让我从跨越所有这些语言的多个文件中获得诸如转到定义"之类的功能?是否有其他一些有用的模块,无论是代码浏览还是索引搜索?

Is there some common IDE extension in emacs that would enable me to have functionality like "goto definition" from multiple files that span all these languages? Are there some other modules that could be useful, either code browsing or indexed search?

推荐答案

如果您想使用多种不同的语言,ctags 非常灵活.有关 ctags 集成的说明,请参阅 EmacsWiki.

If you want to work with lots of different languages, ctags is pretty flexible. See the EmacsWiki for instructions on integration of ctags.

这篇关于我怎样才能最好地在 Emacs 中浏览源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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