About Phpstorm usage tips phpstorm10.0 phpstorm Activation Code phpstorm Use tutorial

Source: Internet
Author: User
Tags php class php define
slowly update, a little accumulation, are their own problems encountered in the use of

Setting:(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 staticfunction  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.

The above describes the use of Phpstorm skills, including the phpstorm aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.