How to set up a Zend studio file comment template
This article mainly explains "how to set up Zend studio file comment template", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's take you to learn "How to set up Zend studio file comment template"!
Steps: Window -> PHP -> Editor -> Templates, where you can set (add, delete, change, import, etc.) to manage your templates.
Create an instance of a template for file comments, function comments, code blocks, etc.
Create a new template and enter Name, Description and Pattern respectively.
a) Document notes
Name: 3cfile
Description: tkyouxi.com File comment template
Pattern:
/**
* tkyouxi.com xx file
* ==============================================
* Copyright 2010-2011 http://www.tkyouxi.com.com All Rights Reserved
* ----------------------------------------------
* This is not free software and no unauthorized use or distribution is permitted.
* ==============================================
* @date: ${date}
* @author: ${user}
* @version:
*/
b) Method Notes
Name: 3cmethod
Description: tkyouxi.com method comment template
Pattern:
/**
* Function Purpose Description
* @date: ${date}
* @author: ${user}
* @return:
*/
c)if format
Name: 3cif
Description: tkyouxi.com if format template
Pattern:
if (${condition}) {
${cursor};
}
Enter PHP file, enter 3cfile, 3cmethod or 3cif, etc. Enter to call up the template content, so as to develop the code specification.
At this point, I believe that everyone has a deeper understanding of "how to set up Zend studio file comment templates," so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!