Steps: Window -> PHP -> Editor -> Templates, here you can set up (add, delete, modify, import, etc.) to manage your templates.
Create instances of templates such as file comments, function comments, code blocks, etc.
Create a new template and enter Name, Description and Pattern respectively
a) File comments
Name: 3cfile
Description: tkyouxi.com file comment template
Pattern:
/**
* tkyouxi.com xx file
* ===================================== =========
* Copyright 2010-2011 http://www.tkyouxi.com.com
* ------------------ --------------------------
* This is not a free software, and any unauthorized use or dissemination is prohibited.
* ==============================================
* @date: ${date}
* @author: ${user}
* @version:
*/
b) Method annotation
Name: 3cmethod
Description: tkyouxi.com method comment template
Pattern:
/**
* Description of function purpose
* @date: ${date}
* @author: ${user}
* @return:
*/
c)if format
Name: 3cif
Description: tkyouxi.com if format template
Pattern:
if (${condition}) {
${cursor};
}
Enter the PHP file, enter 3cfile, 3cmethod or 3cif, etc., and press Enter to call up the template content to facilitate coding standards during development.