Save as Python3.sublime-build – then Ctrl+B to run. Tools → Developer → New Snippet
"folders": [ "path": "src" , "path": "docs" ], "settings": "tab_size": 4 , "build_systems": [ "name": "Custom Build", "cmd": ["make"] ] sublime 4
<snippet> <content><![CDATA[ import React from 'react'; const $1:ComponentName = () => return <div>$2</div>; ; Save as Python3
"keys": ["ctrl+shift+m"], "command": "run_macro_file", "args": "file": "res://Packages/User/my-macro.sublime-macro" Preferences → Key Bindings (User): "path": "docs" ]
Example (React component):
"cmd": ["python3", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python"