Tools -> Developer -> New Snippet

<snippet>
    <content><![CDATA[
public function ${1}()
{
    ${2}
}
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>met</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>

install package  ->  php companion

Preferences -> key bindings

[
{ "keys": ["f5"], "command": "refresh_folder_list" },
{ "keys": ["f9"], "command": "expand_fqcn" },
{ "keys": ["f10"], "command": "find_use" },
{ "keys": ["f11"], "command": "insert_php_constructor_property" },
{ "keys": ["f6"], "command": "sftp_sync_down" },
{"keys": ["ctrl+shift+r"], "command": "reindent" , "args":{"single_line": false}}
]

 

posted on 2016-12-03 22:13  jzfan  阅读(153)  评论(0编辑  收藏  举报