About Phpstorm use tips, phpstorm use tips
Slowly update, a little accumulation, are their own problems encountered in the use of
Settings: (2016.4.15)
1: note Template, Phpstorm has a very powerful comment template, can change at any time according to their own needs, and set shortcut keys, very convenient
new File Comment PHP file Header
php/** *
Class comments PHP class Doc Comment
/* * * Class Index * * @package Application\controller * @VERSION 1.3 * @AUTHOR */ class extends controller{
function Comment PHP function Doc Comment
/* * Get Configuration Class object *author:stubborrookie * * @return config *version:1.3 */ Public Static function config () { returnnew config (); }
Customize your own templates:
File->setting->editor->file and Code Templates
Different display fields can be set according to the rules inside
Custom fields:
Use your own name in comments is usually ${user} But this default is the name of the computer, how to change to their own?
You can select the includes tab and click on the top left corner of the panel to create a new template name: PHP define (customizable) extension PHP
Then write the following code in it:
# Set ($VERSION = "1.3") # Set ($USER = ' Stubbornrookie ')
Define a variable and assign it to a template that needs to be used for that variable, such as:
# Parse ("PHP define.php") /* * Author = ${user}** version =${version} */
You can do it like this!
If you need to comment, such as the method name above input /** and then press Ctrl+enter will automatically complete the comments!
Editor Font
You can set it in the editor, and you need to copy it in the settings.
http://www.bkjia.com/PHPjc/1120380.html www.bkjia.com true http://www.bkjia.com/PHPjc/1120380.html techarticle about phpstorm use skills, phpstorm use of skills slowly updated, a little accumulation, are their own in the use of problems encountered in setting: (2016.4.15) 1: Comment Template, phpstorm have non ...