Python/SublimeText: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „== Install == == Python3 build system == == Key bindings == * Preferences > Key Bindings <pre> [ { "keys": ["ctrl+escape"], "command": "cancel_build…“)
 
No edit summary
Line 3: Line 3:


== Python3 build system ==
== Python3 build system ==
* Tools > Build System > New Build System (save as Python3.sublime-build)
<pre>
{
    "cmd": ["python3", "-i", "-u", "$file"],
    "file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
    "selector": "source.python"
}
</pre>





Revision as of 13:23, 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" },
]