SublimeText is an cross platform editor, written in python. it provides a lots of good stuffs. i never expect these much from this tiny editor.
i have made some tweak to compile and run my java code inside the sublime editor.
just goto Preferences -> Browse packages
now you'll see a lots of folders. now goto java folder and
select JavaC.sublime-build and open it.
now replace the contents with the below script
{
"cmd": ["bash", "-c", "javac ${file} && java ${file_base_name}"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
now done.
write your java code and ctrl+b to compile and run you code.
happy coding :)
i have made some tweak to compile and run my java code inside the sublime editor.
just goto Preferences -> Browse packages
now you'll see a lots of folders. now goto java folder and
select JavaC.sublime-build and open it.
now replace the contents with the below script
{
"cmd": ["bash", "-c", "javac ${file} && java ${file_base_name}"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
now done.
write your java code and ctrl+b to compile and run you code.
happy coding :)
Comments
Post a Comment