Ide-phpstorm Code Formatting issues

Source: Internet
Author: User

Using the Phpstorm format code to function ')' 与 '{' maintain the same line of failure, setting has ticked the settings, has also restarted phpstorm, and has no effect. My settings are as follows:

After setting the Phpstrom format or old kind:

phpfunction you_func(){    return xxx;}

But the effect I need is:

phpfunction you_func() {    return xxx;}

PS: I use the phpstorm version is 8.0.1

Reply content:

Using the Phpstorm format code to function ')' 与 '{' maintain the same line of failure, setting has ticked the settings, has also restarted phpstorm, and has no effect. My settings are as follows:

After setting the Phpstrom format or old kind:

phpfunction you_func(){    return xxx;}

But the effect I need is:

phpfunction you_func() {    return xxx;}

PS: I use the phpstorm version is 8.0.1

You set the wrong, you need to set the function after the value of End of line can be
Class} can also be set, hoping to help you

Although I have not used phpstorm but I have been using the same jetbrains produced idea and pycharm, have encountered similar problems.
JetBrains The format options for a product, warpping usually has the keep when reformatting content at the beginning. The use of this paragraph is to specify which places if the line has already been wrapped, then the formatting to retain these line breaks, rather than remove. This function is usually completely off of me.

  • 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.