Sublime3 Compile run Scala program
Using Sublime3 plus repl to invoke the command line, it is still convenient to run some code snippets. But direct compilation runs Scala programs, you need to add some settings.
1. Configuration:
Select Tools->build system->new build system and replace with:
{
"cmd": ["D:\\scala\\bin\\scala.bat", "$file"]
}
Save file:scala.sublime-build.
Available. But found two problems, can not automatically identify. scala files, while compiling the speed is very slow, I this broken computer to 4s+, too pit.
--------------------------------------------------------------------------------------------------------------- ------------------
2. Optimized configuration:
Change configuration content to:
{
"Shell_cmd": "Scala \" $file \ "",
"Selector": "Source.scala"
}
Call environment variable, compile to run speed to 2s (computer too. ), you can identify. scala files.
--------------------------------------------------------------------------------------------------------------- ------------------
3. Compile and run shortcut keys:
Ctrl+b