Sublime run Java code after compiling

很简单.

Preferences--browse packages--打开java 文件夹--编辑Java.sublime-build

{
"cmd": ["javac", "$file"],
"cmd": ["java", "$file_base_name"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"encoding": "utf-8"
}

sublimetext.com的forum里说sublime不支持交互的输入,so运行的话只能运行没有输入的小程序.just for testing.

 

你可能感兴趣的:(sublime)