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.

 

posted @ 2012-04-07 20:11  丶Blank  阅读(340)  评论(0编辑  收藏  举报