codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

Whitespace not being removed in PHP files

Open studio-mbruce opened this issue 3 years ago • 1 comments

Environment

  • Visual Studio version: 2019 Community
  • CodeMaid version: 11.2
  • Code language: PHP

Description

Code cleanup doesn't remove whitespaces and additional tabs on PHP files and displays warning that the php page is not in the solution even though it is.

Steps to recreate

  1. Open a php file
  2. Add some white space at the begining of a line of code
  3. Run the CodeMaid Cleanup on Active Document

Current behavior

It is not removing any whitespace

Expected behavior

Should remove the whitespace code-after code-before file-in-solution-explorer not-in-solution

studio-mbruce avatar Sep 01 '21 11:09 studio-mbruce

Thanks for reporting the issue. It looks like it was opened as a folder (vs. opened as a solution/project) based on the screenshot with the blue title bar that says "Solution Explorer - Folder View". Do you have a .sln file that you can open with PHP? If so do you have a minimal solution you could attach that reproduces the issue?

codecadwallader avatar Sep 03 '21 12:09 codecadwallader