Zend studio文件注释模板设置方法_PHP教程

WBOY
Release: 2016-07-21 16:13:09
Original
1257 people have browsed it

步骤:Window -> PHP -> Editor -> Templates,这里可以设置(增、删、改、导入等)管理你的模板。
新建文件注释、函数注释、代码块等模板的实例

新建模板,分别输入Name、Description、Pattern

a)文件注释

Name: 3cfile
Description: tkyouxi.com文件注释模板

Pattern:
/**
* tkyouxi.com xx文件
* ==============================================
* 版权所有 2010-2011 http://www.tkyouxi.com.com
* ----------------------------------------------
* 这不是一个自由软件,未经授权不许任何使用和传播。
* ==============================================
* @date: ${date}
* @author: ${user}
* @version:
*/

b)方法注释

Name: 3cmethod
Description: tkyouxi.com方法注释模板
Pattern:
/**
* 函数用途描述
* @date: ${date}
* @author: ${user}
* @return:
*/

c)if格式

Name: 3cif
Description: tkyouxi.com if格式模板
Pattern:
if (${condition}) {
${cursor};
}

进入PHP文件中,输入3cfile、3cmethod或3cif等,回车就可以调出模板内容,以便开发中编码的规范。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/313523.htmlTechArticle步骤:Window - PHP - Editor - Templates,这里可以设置(增、删、改、导入等)管理你的模板。 新建文件注释、函数注释、代码块等模板的实例...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!