Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save magicstone1412/bf6c0da395fdf61c7cc3523930cef3f3 to your computer and use it in GitHub Desktop.
Save magicstone1412/bf6c0da395fdf61c7cc3523930cef3f3 to your computer and use it in GitHub Desktop.
Python_Termius.sublime-build
{
"target": "terminus_exec",
"cancel": "terminus_cancel_build",
"focus": true,
"timeit": true,
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "utf-8"},
"windows": {
"cmd": ["python", "-u", "$file"],
},
"variants":
[
{
"name": "Syntax Check",
"cmd": ["python3", "-m", "py_compile", "$file"],
"windows": {
"cmd": ["py", "-m", "py_compile", "$file"],
}
}
]
}
@magicstone1412
Copy link
Author

magicstone1412 commented Jun 1, 2024

STEPS:

  • Install Package Control from Command Palette (Ctrl + Shift + P)
  • Install Terminus from Package Control
  • Create a New Build System (Go to Tools - Build System - New Build System)
  • Copy the code above
  • Ctrl + S to save and save it with .sublime-build extension
  • Create a code and run it with Ctrl + B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment