我将如何查找在Ubuntu Linux操作系统的C / C ++源代码code更方便和有效的? [英] how would I look up C/C++ source code in Ubuntu Linux more conveniently and efficiently?

查看:346
本文介绍了我将如何查找在Ubuntu Linux操作系统的C / C ++源代码code更方便和有效的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我们所知,在 SourceInsight 是方便查找C / C ++源代码code上的窗口。

As we know , the SourceInsight is convenient to look up C/C++ source code on windows.

是java的code一个不错的选择。

The eclipse is a good choice for java code .

我想学习Android源$ C ​​$ C,但没有来查找C / C ++ code一个方便的工具。当我分析由简单的文本编辑器,C / C ++ code的调用关系,这让我头疼!

I want to study the android source code ,but there isn't a convenient tool to look up the C/C++ code . When I analyze the invoking relationships of C/C++ code by simple text editor, it makes me a headache !

例如,我想知道方法的定义的的getService()其中援引的框架/基/库/ UI / Camera.cpp

For example, I want to know the definition of method getService() which invoked in frameworks/base/libs/ui/Camera.cpp

binder = sm->getService(String16("media.camera"));

我将浪费大量的时间去寻找调用关系。

I will waste a large amount of time to find the invoking relationships.

但是,当我想知道通过月食的java code的定义,就像方法的onCreate() 封装/应用/摄像机/ src目录/ COM /安卓/摄像头/ Camera.java ,只差一步就可以了。

But when I want to know the definition of java code by eclipse,like method onCreate() in packages/apps/Camera/src/com/android/camera/Camera.java , only one step is OK.

我将如何查找C / C ++源代码code在Ubuntu Linux操作系统更加方便和有效?

How would I look up C/C++ source code in Ubuntu Linux more conveniently and efficiently ?

推荐答案

,使用的ctags如果你使用vi或ETag的为Emacs。

Use ctags if you are using vi, or etags for emacs.

还有 cscope的,这我是当我用它多年pssed很IM $ P $前。

There is also cscope, which I was very impressed with when I used it many years ago.

这篇关于我将如何查找在Ubuntu Linux操作系统的C / C ++源代码code更方便和有效的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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