Created
May 9, 2018 11:16
-
-
Save p8R/b988570683882f0fafb0a2d352412339 to your computer and use it in GitHub Desktop.
SublimeText 3 Java build system 2 variants: build (Ctrl+B), run (Ctrl+Shift+B)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["javac", "$file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java", | |
"shell": true, | |
"encoding": "cp1250", | |
"variants": [ | |
{ "cmd": ["java", "$file_base_name"], | |
"name": "Run Java" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place above code in the file C:/Users//AppData/Roaming/Sublime Text 3/Packages/Java/JavaC.sublime-build
If file doesn't not exist, create it. Also change source code encoding if necessary.