Sublime the menu bar->tools→new snippet→ Enter the following:
<snippet><content><![cdata[<?PHP//vim:set expandtab cindent tabstop=4 shiftwidth=4 fdm=marker://+------------------------------------------------ ----------------------+// | The CompanyName Inc |//+----------------------------------------------------------------------+//| Copyright (c), 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>
Then save the file named Phpheader.sublime-snippet, save to the specified path
Then create a new file, enter Phpheader+tab to automatically enter the PHP header comments, bingo!
EditPlus principle is similar, you can also use code snippets to complete
How to use sublime code snippets to quickly enter a PHP header version declaration