https://github.com/amosyu2000/st3-build-systems
Amos Yu, amosyu2000.github.io
A Sublime Text 3 (ST3) Package containing scripts for compiling/executing a handful of file types. ST3's built-in build systems do not allow the user to give input at runtime. These Sublime build systems bypass this issue by opening a separate command prompt window to execute the program rather than executing in ST3's build output panel.
This package has a test
directory containing test code files for each supported file type.
If you encounter any issues using this package, please open an issue.
- C
.c
- C++
.cpp
- Java
.java
- Python
.py
Ctrl+B
is the hotkey for building a file.- Change your build system to automatic so that ST3 remembers which build system to use for each file type. Go to Tools > Build System > Automatic.
- Some of the build systems in this package have custom features (ex. Compiling a custom
.exe
file in C instead of the generica.exe
). The hotkeyCtrl+Shift+B
will access these. - An important custom feature is the ability to run Python files under a virtual environment. There is support for the
virtualenv
andpipenv
packages, however, it is HIGHLY recommended to usepipenv
in your projects because it is more reliable and user-friendly. - You may want to disable the output panel in ST3 from appearing every time you run a file. Go to Preferences > Settings and add
"show_panel_on_build": false
to yourPreferences.sublime-settings -- User
file.