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" }, ]
时间: 2024-10-09 22:59:11