如何最好地在Emacs内部进行源代码浏览? [英] How can I best do source code browsing inside Emacs?

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

问题描述

我有一个工作流程,即使我的主编辑器是emacs,我也在shell中使用grep和其他工具来搜索不同的项目。我通常负责修复错误和源代码的小开发,这通常是我不为人知的,所以搜索代码很重要。我主要工作的langages是php,ruby,java,perl,有时候是python。



在emacs中是否有一些常见的IDE扩展,这将使我能够从跨越所有这些语言的多个文件中获得goto定义等功能?还有一些其他可能有用的模块,无论是代码浏览还是索引搜索?

解决方案

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


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.

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?

解决方案

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天全站免登陆