我正在使用eclipse和scala插件来编写scala代码。编辑似乎具有有限的语法突出显示选项 - 例如,我想更改变量的格式(我喜欢它们蓝色)和方法defs。

我知道有一些其他荧光笔插件,如eclipseScolorer,但它们似乎丢失了Scala(或其他Langauges)编辑器的特征,如自动完成和建议。

是有没有插件或方法我可以修改Scala插件以更精细地控制Scala语法着色/格式选项?

有帮助吗?

解决方案

Some of this is being worked on. The nightly build page has 'Semantic Highlighting' (making variables blue etc) marked as 'coming soon.

Also the current roadmap may help with when a released version on the eclipse-scala ide.

(As 'coming soon' is very date dependent then 'today' is 10/March/12 )

其他提示

The editor that comes with the Play Framework Eclipse plugin has syntax highlighting customizability: http://scala-ide.org/download/current.html

You can go to Preferences -> Scala -> Syntax Coloring to set the different colors.

Have you tried Eclipse Color Theme?

Scala auto complete, etc. unaffected ;-)

A slightly tweaked Wombat theme in Scala works well for me (also: Aptana Eclipse plugin helps immensely with html/css/erb, etc.)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top