amosyu2000 / st3-build-systems

Sublime Text 3 build systems for a handful of file types.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sublime Text 3 Build Systems

https://github.com/amosyu2000/st3-build-systems
Amos Yu, amosyu2000.github.io

About

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.

Screenshot

Supported File Types

  • C .c
  • C++ .cpp
  • Java .java
  • Python .py

Tips and Tricks

  • 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 generic a.exe). The hotkey Ctrl+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 and pipenv packages, however, it is HIGHLY recommended to use pipenv 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 your Preferences.sublime-settings -- User file.

About

Sublime Text 3 build systems for a handful of file types.

License:MIT License


Languages

Language:Batchfile 93.7%Language:Java 2.3%Language:C++ 2.0%Language:C 1.5%Language:Python 0.5%