简体   繁体   English

Scala的Emacs项目管理

[英]Emacs project management for Scala

I would like to ask if any of you have any experience {and,or} could point me to a project management extension for Emacs that works well with {Scala,Ensime,SBT}. 我想问一下你是否有任何经验{和,或}可以指向我与Emacs的项目管理扩展,它与{Scala,Ensime,SBT}配合得很好。 It would also be amazing if it didn't require too much hacking. 如果它不需要太多的黑客攻击也会令人惊讶。 I did some scheme in the past but I have little experience with the Emacs platform. 我过去做了一些计划,但我对Emacs平台没什么经验。

Basically, by project management I mean mainly the ability to 'tie files into project' and then search among them (and only among them). 基本上,通过项目管理我的意思主要是“将文件绑定到项目中”然后在它们之间进行搜索(并且仅在它们之间)。

Thanks for taking the time to read this and answer! 感谢您花时间阅读并回答!

I really hate that you can't setup projects out of the box, though. 我真的很讨厌你不能开箱即用的项目。

Just set up the project with sbt or maven and import it with ensime. 只需使用sbt或maven设置项目并使用ensime导入它。

Essentially, what i would want is to be able to flex-find files in the project 基本上,我想要的是能够在项目中灵活查找文件

"flex-find" is not English, so I don't really know what you mean. “flex-find”不是英文,所以我真的不知道你的意思。 But what is wrong with find (the command line tool)? 但是find (命令行工具)有什么问题?

With ensime you can load your project and then search for a type or method by name. 使用ensime,您可以加载项目,然后按名称搜索类型或方法 The key sequence is Cc Cv v . 关键序列是Cc Cv v This allows you to, for example, jump directly to a class definition. 例如,这允许您直接跳转到类定义。

The package projectile has a bunch of generic project-level features, such as running commands in the project root folder, grepping, creating TAGS files etc. projectile具有一系列通用的项目级功能,例如在项目根文件夹中运行命令,grepping,创建TAGS文件等。

I'm a relatively new user of it, so I can't say exactly how big a difference it makes, but it seems like a worthwhile addition to your tool belt. 我是一个相对较新的用户,所以我不能确切地说它有多大差别,但它似乎是你工具带的一个有价值的补充。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM