Sublime 4 File

"keys": ["ctrl+shift+m"], "command": "run_macro_file", "args": "file": "res://Packages/User/my-macro.sublime-macro" Preferences → Key Bindings (User):

Save as Python3.sublime-build – then Ctrl+B to run. Tools → Developer → New Snippet sublime 4

<snippet> <content><![CDATA[ import React from 'react'; const $1:ComponentName = () => return <div>$2</div>; ; ![CDATA[ import React from 'react'

"cmd": ["python3", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" const $1:ComponentName = () =&gt

"folders": [ "path": "src" , "path": "docs" ], "settings": "tab_size": 4 , "build_systems": [ "name": "Custom Build", "cmd": ["make"] ]

export default $1; ]]></content> <tabTrigger>rfc</tabTrigger> <scope>source.js</scope> </snippet>

Example (React component):

タイトルとURLをコピーしました