Sublime 3 Build System Configuration & Key Bindings (Java, C++ & Python)

Pubblicato il: 24 agosto 2020
sul canale di: Eseasy CS Academy
130
5

Build Systems Links:
c++ https://docs.google.com/document/d/1B...
java https://docs.google.com/document/d/1Y...
python https://docs.google.com/document/d/12...


If you want to simply copy:

c++
{
"cmd": ["g++", "-o", "${file_path}/${file_base_name}.exe", "-static-libgcc", "-static-libstdc++", "*.cpp"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp, source.c++",
"path": "C:/Program Files (x86)/mingw-w64/mingw64/mingw32/bin",
"shell": true,
"variants": [
{
"name": "Run",
"cmd": ["g++", "-o", "${file_path}/${file_base_name}.exe", "-static-libgcc", "-static-libstdc++", "*.cpp", "&", "${file_path}/${file_base_name}.exe"]
}
]
}

Java
{
"cmd": ["javac", "$file_name","&&","java", "$file_base_name"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"path": "C:\\Program Files\\Java\\jdk-14.0.2\\bin",
"selector": "source.java",
"shell": true
}

Python
{
"cmd": ["python3", "-i", "-u", "$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python"
}


Keybinding Link: https://docs.google.com/document/d/1S...

If you want to simply copy:
[
{
"keys": ["f1"],
"command": "build",
"args": {
"build_system": "Packages/User/RunCPP.sublime-build"
}
},
{
"keys": ["f2"],
"command": "build",
"args": {
"build_system": "Packages/User/RunJava.sublime-build"
}
},
{
"keys": ["f3"],
"command": "build",
"args": {
"build_system": "Packages/User/RunPy.sublime-build"
}
}
]

Hope you enjoyed my tutorial where I showed you my configuration to compile multiple languages in sublime text with keybindings and creating build systems!

Thank you guys so much for watching! Check out my other tutorials on my channel: Eseasy CS Academy!


In questa pagina del sito puoi guardare il video online Sublime 3 Build System Configuration & Key Bindings (Java, C++ & Python) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Eseasy CS Academy 24 agosto 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 130 volte e gli è piaciuto 5 spettatori. Buona visione!