2

優れた Scala IDE を探しています。

Eclipse (少し前) と IntelliJ Idea (最近) のプラグインを試してみましたが、どちらにも不満があります。最初はかなり遅くて不安定でしたが、IntelliJ Idea のインターフェースはあまり好きではありませんでした。

利用可能な代替手段はありますか?

私は SBT プロジェクトで作業しますが、探しているのは主に構文の強調表示とオートコンプリートです。私は Scala 構文に慣れていないので、ソース コードの部分的なコンパイルがあると便利です。エラーを記述したらすぐにエラーを見つけるのに役立ちます。

4

4 に答える 4

7

私見 InteliJ は現時点で Scala に最適な IDE です。まず、Eclipse とは異なるインターフェースでいくつかの問題がありました。しかし、最終的には、IntelliJ に含まれるパッケージ全体から利益を得ることができます。アクティブな scala プラグインの開発もあります。

于 2012-09-13T07:00:58.540 に答える
6

What I like to do is split my terminal once horizontally, and then split the bottom pane once vertically.

In the top pane I have vim (emacs works too if you're an emacs person) with the NERDTree plugin (acts like the project folder/file browser in text editors). On the bottom left I have SBT continuous compilation (sbt ~compile). I use the bottom right pane to actually run code (tests, etc.).

Regarding auto-completion, you can try something like the Snipmate plugin for vim.

Also, as stated by Ivan, if you end up using emacs ENSIME seems to be widely liked - unfortunately there doesn't seem to be an ENSIME port for vim yet, at least to my knowledge.

With this setup, I edit in the top pane, and once I save a file, I get near immediate feedback by just glancing on the bottom left and know when I typo'ed something, or maybe my code is just plain wrong, stuff like that.

On a slightly related note, I used to use IDE's but they got too messy for my taste (back then I was writing C and C++) so I moved to just a text editor (e.g. Chocolat, Sublime Text 2) and used a terminal, and that was fine for me for about a year. Then this summer I really sat down and tried going vim only and I can honestly say I'm much more productive in my all terminal setup than what I was before. Just my 2 cents.

This all also has the added benefit of working on remote servers as well.

于 2012-09-13T02:52:20.247 に答える
2

Scala IDE for Eclipseは活発に開発されており、急速に進化しています。今すぐ試してみてください (「しばらく前」が何を意味するのかわかりませんが、6 か月以上経過している場合は、うれしい驚きがあるかもしれません)。確かに、私はコミッターなので偏見があります。

于 2012-09-13T07:39:20.957 に答える
1

emacs の ENIME を試すことができます。jEdit、Sublime Text 2 などでも使用できます。

個人的には Scala IDE 2.1 (Eclipse 用) を使用しています。今ではかなり速くなり、あなたと同じような状況になってから、実際に使いたいと思うようになりました.

于 2012-09-13T02:19:10.387 に答える