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:
php
function you_func(){ return xxx;}
But the effect I need is:
php
function 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:
php
function you_func(){ return xxx;}
But the effect I need is:
php
function 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.