Difference between revisions of "Sublime"

From Wiki2
(Created page with "===macros=== are kept in SublimeUser.lnk, a shortcut to tim/AppData/Roamiing/Sublime Text/Packages/User")
 
Line 2: Line 2:


are kept in SublimeUser.lnk, a shortcut to tim/AppData/Roamiing/Sublime Text/Packages/User
are kept in SublimeUser.lnk, a shortcut to tim/AppData/Roamiing/Sublime Text/Packages/User
Default(Windows).sublime.keymap
<syntaxhighlight lang='json'>
[
{ "keys": ["ctrl+shift+s"], "command": "run_macro_file", "args": {"file": "Packages/User/sytx.sublime-macro"}}
]
</syntaxhighlight>
sytx.sublime.macro
<syntaxhighlight lang='json'>
[
{"command": "insert", "args":{"characters": "<syntaxhighlight lang='php'>\n\n</syntaxhighlight>"}},
{"command": "move_to", "args":{"extend": false, "to": "bol"}},
{"command": "move", "args":{"by": "lines","forward": false}}
]
</syntaxhighlight>

Revision as of 15:55, 10 January 2014

macros

are kept in SublimeUser.lnk, a shortcut to tim/AppData/Roamiing/Sublime Text/Packages/User

Default(Windows).sublime.keymap <syntaxhighlight lang='json'> [ { "keys": ["ctrl+shift+s"], "command": "run_macro_file", "args": {"file": "Packages/User/sytx.sublime-macro"}} ] </syntaxhighlight>

sytx.sublime.macro <syntaxhighlight lang='json'> [ {"command": "insert", "args":{"characters": "<syntaxhighlight lang='php'>\n\n</syntaxhighlight>"}}, {"command": "move_to", "args":{"extend": false, "to": "bol"}}, {"command": "move", "args":{"by": "lines","forward": false}} ]

</syntaxhighlight>