Emacs:如何在我的项目中快速找到一个文件? [英] Emacs: How can I find a file in my project quickly?

查看:351
本文介绍了Emacs:如何在我的项目中快速找到一个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我正在使用ede来管理我的cpp项目,我尽快在我的项目中找到一个文件,但是我失败了。我使用 ede-find-file 找到db.h,它位于d:/projects/leveldb/include/db.h,不幸的是它说找不到。

Now, I'm using ede to manage my cpp project, and I try to find a file in my project quickly, but I failed. I used ede-find-file to find "db.h", it sits in "d:/projects/leveldb/include/db.h", unfortunately, it said cannot find.

我的配置放在

(setq leveldb_root "d:/projects/leveldb/")

(ede-cpp-root-project
  "leveldb"
  :file (concat leveldb_root ".gitignore")
  :system-include-path '("C:/Program Files/Microsoft SDKs/Windows/v7.1/Include"
                       "C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include")
  :include-path '("/"
                "/include"))

而且,是否有项目管理和文件查找解决方案的建议? (我也试过find-file-in-project)。

And, is there any suggestion for project management and file find solution? (I also tried find-file-in-project).

我使用ede,因为我需要ede-cpp-root-project来自动设置semanticdb。 >

I use ede because I need the ede-cpp-root-project to automatically set semanticdb.

推荐答案

看看射弹。弹丸是Emacs的项目交互库。其目标是提供一组在项目级别上运行的功能,而无需引入外部依赖关系。例如,找到项目文件是在纯粹的elisp中完成的,而不使用GNU find。

Have a look at projectile. Projectile is a project interaction library for Emacs. Its goal is to provide a nice set of features operating on a project level without introducing external dependencies. For instance - finding project files is done in pure elisp without the use of GNU find.

这个库提供了简单的项目管理和导航。一个项目的概念是非常基本的 - 只是一个包含特殊文件的文件夹。目前,git,mercurial和bazaar repos是默认的项目。如果要将文件夹手动标记为项目,只需在其中创建一个空的 .projectile 文件。

This library provides easy project management and navigation. The concept of a project is pretty basic - just a folder containing special file. Currently git, mercurial and bazaar repos are considered projects by default. If you want to mark a folder manually as a project just create an empty .projectile file in it.

这篇关于Emacs:如何在我的项目中快速找到一个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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