1. 程式人生 > >sublime中設置scala編譯運行

sublime中設置scala編譯運行

image cmd roman 分享 保存 jdk all 運行 pan

Attention:

前提、前提、前提:電腦上安裝scala和jdk,可以在cmd中運行scala命令:

技術分享

okay,next:

1.配置內容

Tools->Build Systems->New Build System, 輸入一下以下內容:

{

"cmd": ["scala", "$file"],

"selector": ["source.scala"],

"shell": "true"

}

2.保存路徑:

C:\***ur install directory***\Sublime Text 2\Packages\User

3.保存文件名:

scala.sublime-build

well done.

ctl+b(快捷鍵運行)

技術分享

sublime中設置scala編譯運行