kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
129 stars 30 forks source link

Adding whitespace after format #90

Closed dutchman1990 closed 1 year ago

dutchman1990 commented 2 years ago

Issue After formatting code in VS Code I'm seeing whitespace changes in all methods inside a class. Hence git is detecting the file as changed. Although they are the same. Check my screenshot below.

Environment

PHP Fmt config "phpfmt.psr2": false, "phpfmt.exclude": [ "AllmanStyleBraces", "SortUseNameSpace", "SpaceAroundControlStructures", "OrderAndRemoveUseClauses", ], "phpfmt.passes": [ "AlignDoubleArrow", "ShortArray", "AutoSemicolon", "AlignGroupDoubleArrow", "AlignEquals", "AddMissingParentheses", "SpaceBetweenMethods", "TrimSpaceBeforeSemicolon", "StripExtraCommaInArray" ],

Screenshot (204)