Sublime Text Quick Type Key Binding


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/

Share on Google Plus

About Ram Pukar

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment