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
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


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




== Key bindings ==
== Key bindings ==
* Preferences > Key Bindings
* Preferences > Key Bindings
<blockquote>
<pre>
<pre>
[
[
Line 13: 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" },
]