首页 > 代码库 > Linux 下 Sublime3 编译运行Java

Linux 下 Sublime3 编译运行Java



{
    "cmd": ["javac", "-Xlint", "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "working_dir": "${file_path}",
    "selector": "source.java",

     "variants":
     [
          {
               "name": "Run",
                "cmd": ["gnome-terminal", "--title=${file}","-e",
                        "bash -c \"javac '${file}'  && java '${file_base_name}' ; read -p 'Press any key to continue...'\""]
          }
     ]
}




Linux 下 Sublime3 编译运行Java