Closed dutchman1990 closed 1 year 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" ],
"phpfmt.psr2": false, "phpfmt.exclude": [ "AllmanStyleBraces", "SortUseNameSpace", "SpaceAroundControlStructures", "OrderAndRemoveUseClauses", ], "phpfmt.passes": [ "AlignDoubleArrow", "ShortArray", "AutoSemicolon", "AlignGroupDoubleArrow", "AlignEquals", "AddMissingParentheses", "SpaceBetweenMethods", "TrimSpaceBeforeSemicolon", "StripExtraCommaInArray" ],
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" ],