Python/SublimeText: Difference between revisions
Appearance
< Python
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
== Python3 build system == | == Python3 build system == | ||
* Tools > Build System > New Build System (save as Python3.sublime-build) | * Tools > Build System > New Build System (save as Python3.sublime-build) | ||
<blockquote> | |||
<pre> | <pre> | ||
{ | { | ||
| Line 11: | Line 12: | ||
} | } | ||
</pre> | </pre> | ||
</blockquote> | |||
== Key bindings == | == Key bindings == | ||
* Preferences > Key Bindings | * Preferences > Key Bindings | ||
<blockquote> | |||
<pre> | <pre> | ||
[ | [ | ||
| Line 21: | Line 23: | ||
] | ] | ||
</pre> | </pre> | ||
</blockquote> | |||
Latest revision as of 13:24, 13 February 2018
Install
Python3 build system
- Tools > Build System > New Build System (save as Python3.sublime-build)
{
"cmd": ["python3", "-i", "-u", "$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python"
}
Key bindings
- Preferences > Key Bindings
[
{ "keys": ["ctrl+escape"], "command": "cancel_build" },
]