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!

 

1
Avatar
Permanently deleted user

Does setting Blank lines > Around method to 0 help?

0
Avatar
Permanently deleted user
0
Avatar
Permanently deleted user

Hi,

As per https://youtrack.jetbrains.com/issue/WI-10550, this is in progress now and will be fixed in upcoming 2017.2.

0
Avatar
Permanently deleted user

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?

0

There's no 2017.2 release date yet. Next EAP means next 2017.2 EAP build.

0

请先登录再写评论。