New line added after reformatting
Hi there,
After reformatting, there is a new line added after the "}". I don't know how to disable it.
The organic codes:
function my_function() {
// Codes here.
}
add_action( 'action_tag', 'my_function' );
The reformatted codes:
function my_function() {
// codes here.
}
// new line added here after reformatting. How to disable it?
add_action( 'action_tag', 'my_function' );
The settings for code style:



Product version: PhpStorm 2017.1.3 Build #PS-171.4424.11. OS: Windows 7 64-bit.
Any suggestions would be greatly appreciated. Thanks!
请先登录再写评论。
Does setting Blank lines > Around method to 0 help?
It didn't help. Just found this post https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000033270-Remove-blank-line-before-Wordpress-function-calls It's unfortunately not possible yet.
Hi,
As per https://youtrack.jetbrains.com/issue/WI-10550, this is in progress now and will be fixed in upcoming 2017.2.
The status for https://youtrack.jetbrains.com/issue/WI-10550 just changed to Next EAP, so it will not be fixed in upcoming 2017.2, right?
There's no 2017.2 release date yet. Next EAP means next 2017.2 EAP build.