Work by day-the first blog day&happy days, work first Blogday
Today (Monday) see a colleague's life plan, feel quite suitable for me, practice, on Theo&tools day+code Day+blog Day, intermittent have happy day ~
Blog day to do so, a blog summary, the content of a lot of separation to write a single article, in the summary of the link
=================================================
2016.06.20
Originally intended to write a small web page, about Morse code, but Zend tools are not good, find a blog write good, practice, have time to learn some other
===================
Hang Http://my.oschina.net/junn/blog/161409--zend
2. by default,Zend Studio cannot open the. tpl file, there is no way to allow it to support. TPL template files, as well as other formats, such as DWT, and other related files.
To open a. tpl file, you can open window->preferences->general->content types, select a file type on the right, such as HTML, add *.TPL below, save it. This allows you to double-click the *.tpl file to open it with the Zde built-in editor.
4, how to Zend Studio for Eclipse, each time a new file is displayed
/**
*
* @copyright (c) 2009
* @author oo
* @package Common
* @version $Id: template.php
*/
The reality is exhausted (show similar [gently note]) Such a thing on the internet to find out that called Phpdoc, but still do not understand thank you
This is the templates feature of Zend Studio for Eclipse
Old version: Go to menu window->preferences->php->templates, find new simple PHP file on the right
New version: Go to menu Window->preferences->php->code style->code templates, find simple PHP file on the left,
The default content is this:
< PHP
${cursor}
?>
is when we use Zend Studio for Eclipse new Phpfile The default template, you can directly modify this template to meet your requirements, of course, a better way is to create a new template, its context select New PHP, and then edit your template , some variables are supported here. BTW: Many people may think that ${user} can be used as a author, but in fact this variable is your OS login name, for example my is administrator.
So, how do you use it? when using new->php file to create new files, use the new simple PHP file or the new template name you modified in the next step of the wizard
New version: Go to menu Window->preferences->php->code style->code templates can add file header comments:
2013-http:Www.123.com *----------------------------------------------* This isNot a free software, without any authorization isNot allowed toUseand spread. * ============================================== * @param ${unknowtype} * @return ${return_type} * @author: ${user} * @dat E: ${date} * @version: v1.0.0 *//** * @func: function Function Description * @date: ${date} * @author: ${user} * @return: ${return_type} ** * File Description * @date ${date} ${time} * @author XXX * @version1.0.0 * @copyright xxx *//** * @desc: Function Description (description) * @author: ${ User} * @date: ${date} */#要添加的模板格式 # #名称: mdt# Description: Methods Describe the template# mode:/** * the Descriptions of functions. * * @access public|private|protected * @param mixed $ $name Comment * @param int $ $name Comment * @param string $ $name Comment * @param bool $ $name Comment * @param array $ $name comment * @return void|int|string|boolean|array comment */#示例如下 #/** * The descriptions of functions. * * @a ccess public|private|protected * @param mixed $name comment * @param int $name Comment * @param String $name Comment * @param bool $name comment * @param array $name comment * @return void| int|string|boolean|array comment */?>
New version: Go to menu window->preferences->php->editor->templates to create a new template :
6, Zend Stdio for ecplise code folding function?
There are two main places to set up for PHP and other files
The view Now:
Code folding shortcut keys:
ctrl+/(numpad) collapses all code in the current class
ctrl+* (Numpad) All expand all code in the current class
ctrl+shift+/collapse All code in the current class
7, commonly used some shortcut keys:
1. Ctrl+d key, which allows you to delete the line where the current cursor is located.
2. In the edit window, press the key combination ctrl+e. You can eject the page you want to switch to.
3. Increase multi-action progress
In the edit window, select any number of lines of code, and then press the TAB key to add a tab distance to the indentation of the code. (To remove indents, select the code, then press the key combination SHIFT + Tab).
4. ctrl+/single-line comment. When the code is currently in place, a double slash line comment is added to the line where the cursor is located, a double slash is added to each row for multiple lines, and a comment is added before and after the line when the code is HTML, and multiple rows are added before or after the selection , rather than each row.
5. ctrl+shift+/block Comment, add the/* */Block comment for the selected PHP code, and if no code is selected, add a block comment to the line where the cursor is located
6. Ctrl+shilft+f quick formatting of the code
7. Ctrl+h in the entire project to find a method name, or other related files
8. When the cursor moves to a row, left-click three times to select the entire row.
9. Tab code indentation under Zend Studio for Ecplise
=============
http://blog.csdn.net/e421083458/article/details/48712691
Zend Studio automatically add file comments and method comments
Go to Preferences =>php=>editor=>template=>new
File Comments:
Name\description\pattern are filled in separately (line breaks as intervals):
3cfile
File Comment Template
/**
* Document Usage Description
* @date: ${date} ${time}
* @author: ${user}
*/
Function Comment:
3cmethod
Method Comment Template
/**
* Function Usage Description
* @date: ${date} ${time}
* @author: ${user}
* @param: ${variable}
* @return:
*/
How to use:
Tap the letter 3 and follow the code to select it.
==================
The above is basically reproduced , but summed up on both sides of the thing, I made a new file simple PHP framework, as well as classes, methods and functions, such as templates, tomorrow affixed!
Tomorrow, Wednesday Well, code day, do Morse code page for yourself, do not try to template, first simple OO&MVC mode of production bar, hehe
http://www.bkjia.com/PHPjc/1135810.html www.bkjia.com true http://www.bkjia.com/PHPjc/1135810.html techarticle work by day-the first blog Dayhappy Day, work the first blogday today (Monday) see a colleague's life plan, feel very suitable for me, practice, on the Theotools D ...