vysker / vscode-php-formatter

Visual Studio Code extension. A wrapper for the Sensiolabs PHP CS Fixer. Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible).
MIT License
94 stars 11 forks source link

add a new block line when format selected lines #14

Closed stonyz closed 7 years ago

stonyz commented 7 years ago

Steps,

  1. Select some lines,
  2. and format it by shift+alt+F
  3. wait about 1s (This is also an issue, cann't format immediatly, must wait about 1 second)

Result, An additional new line was added to the tail of the selected code section.

If press shift+alt+F again, one more blank line will be added again.

vysker commented 7 years ago

Hello Stonyz,

Have you tried any of the fixers to solve this? Try no_trailing_whitespace, for instance. If that doesn't work, try other fixers that revolve around things like hitespace.

Let me know if any of those work.

vysker commented 7 years ago

Assuming this has been fixed. Closing for now.