Java console in Sublime Text

  1. Tools -> Build System -> New Build System…
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"shell_cmd": "javac \"$file\"",
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",

"variants":
[
{
"name": "Run",
"shell_cmd": "java $file_base_name"
}
]
}
  1. Save as JavaC.sublime-build

  2. Choose Automatic, run using command + B

1
2
var fName = function(fVal) {}; 
console.log(fName(fVal));

§Delete build system

1
OS X: ~/Library/Application Support/Sublime Text 3/Packages/