黑猴子的家:用Sublime Text运行Scala

打开菜单栏Tool->build system->new build system,在打开文件敲入
方式一

{
"shell_cmd": "scala \"$file\"",
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.scala",
"encoding": "gbk"
}

保存为Scala.sublime-build
勾选 Tool->build system->Scala
运行 Tool -> build 或者 Ctrl+ B
方式二

{
"cmd": ["scala", "$file"],
"windows":{
        "cmd": ["scala.bat", "$file"]
    }
}

方式三

{
"shell_cmd": "scala \"$file\"",
"selector": "source.scala"
}

方式四

{ 
"cmd": ["D:\\your_scala_home\\bin\\scala.bat", "$file"] 
}

你可能感兴趣的:(黑猴子的家:用Sublime Text运行Scala)