Zend Studio Professional is a new generation of smart PHP IDE, which is designed to help developers improve efficiency, create high-quality PHP applications! It contains the components necessary to develop PHP, through a set of editing, debugging, analysis, optimization and database tools, Zend Studio to accelerate development cycles, and simplifies complex applications.
This paper describes the Zend Studio tutorial - how to add comments. Zend Studio allows you to select a line or paragraph of text and mark it as a comment to quickly and easily comment and uncomment code. Xiaobian look at the specific steps it ~
Notes can be added to a single line of code (Ctrl + /) or block (Ctrl + Shift + /).
In addition, you can also add special PHPDocBlock comment .
To create PHPDoc Notes:
In line elements above PHP code, enter DocBlock characters / ** and press the Enter key .
Or right-click the "Outline View" in the relevant element and select "source" | Add PHPDoc .
PHPDoc will create a comment that contains information you want to use multiple parameters to edit.
Can be configured for different elements of the default code generated by the comment "Code Templates Preferences" page.
The following procedure describes how annotations and cancel comment line code, and code block .
Comment line:
1, the position of the cursor on any line of code required.
2, press Ctrl + /.
Two rows slash "//" is added to the preceding line, it is recognized as a comment.
Comment multiple lines:
1, select all the rows you want to comment.
2, press Ctrl + /.
Two rows slash "//" is added to the front of every line, so that they are recognized as a comment.
Uncomment one or more lines of:
1. Select the desired line.
2, press Ctrl + /.
Notes format to delete from the code.
Notes block:
1, the desired block select code.
2、按Ctrl + Shift + /。
Beginning (/ *) and end (* /) character is added to the appropriate position, so that the selected block is marked as a comment.