是否可以使用Ensime和SBT来定义Scala库类?
我知道可以看到元素的定义(使用M-。或Control +左键单击),从那里可以看到doc页面。有没有办法将此功能绑定到src中?
更新:
我的项目配置(.ensime文件):
(
:root-dir "/Users/eugene/tmp/scrap"
:sources (
"/Users/eugene/tmp/scrap"
)
:reference-source-roots (
"/usr/local/Cellar/scala/2.9.2/libexec/src"
)
:compile-deps (
""
)
:target "/Users/eugene/tmp/scrap"
)
/usr/local/Cellar/scala/2.9.2/libexec/src包含:
scala-compiler-src.jar scala-library-src.jar scala-swing-src.jar
scala-dbc-src.jar scala-partest-src.jar scalap-src.jar
build.sbt:
name := "scrap"
version := "0.1-SNAPSHOT"
scalaVersion := "2.9.2"