codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.92k stars 363 forks source link

Whitespace not being removed in PHP files #839

Open MattBruce-IHC opened 3 years ago

MattBruce-IHC commented 3 years ago

Environment

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

codecadwallader commented 3 years ago

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?