1. Run appdate
2. Open Appdate Folder Then Create file <type_name>.sublime-snippet
C:\Users\Pukar\AppData\Roaming\Sublime Text 3\Packages\User\echo.sublime-snippet
<snippet>
<content>
<![CDATA[<?= \$${1:var}; ?>]]>
</content>
<description>Basic echo expression</description>
<tabTrigger>==</tabTrigger>
</snippet>
C:\Users\Pukar\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-keymap
[
{ "keys": ["f10"], "command": "reindent" },
{ "keys": ["ctrl+e"], "command": "insert_snippet", "args": {"name": "Packages/User/echo.sublime-snippet" } }
]
Now Type
==<press tab>
Show
<?= $var; ?>
Reference Site:
http://www.hongkiat.com/blog/sublime-code-snippets/
0 comments:
Post a Comment