企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#### 代码片段 使用sublime代码片段快速输入PHP头部版本声明 ![](https://box.kancloud.cn/774069c181708e8f859cc1b8bfe8edf2_861x519.png) `Sublime 菜单栏`->`Tools`→Developer→`New Snippet`→输入以下内容: ~~~ <snippet> <content><![CDATA[ <?php // vim: set expandtab cindent tabstop=4 shiftwidth=4 fdm=marker: // +----------------------------------------------------------------------+ // | The CompanyName Inc | // +----------------------------------------------------------------------+ // | Copyright (c) 2013, CompanyName Inc. All rights reserved. | // +----------------------------------------------------------------------+ // | Authors: The PHP Dev Team, ISRD, CompanyName Inc. | // | | // +----------------------------------------------------------------------+ /** * @version 1.0 * @author wade * @date */ ]]></content> <tabTrigger>phpheader</tabTrigger> <description>phpheader</description> </snippet> ~~~ 然后保存文件名为`phpheader.sublime-snippet`,保存到指定路径,以笔者路径为例: ![](https://box.kancloud.cn/ab955ce5485c0861902389152a62957c_1614x924.png) 然后新建一个文件,输入`phpheader+tab`就可以自动输入`php头部注释` ~~~ <?php // vim: set expandtab cindent tabstop=4 shiftwidth=4 fdm=marker: // +----------------------------------------------------------------------+ // | The CompanyName Inc | // +----------------------------------------------------------------------+ // | Copyright (c) 2013, CompanyName Inc. All rights reserved. | // +----------------------------------------------------------------------+ // | Authors: The PHP Dev Team, ISRD, CompanyName Inc. | // | | // +----------------------------------------------------------------------+ /** * @version 1.0 * @author wade * @date */ ~~~