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.89k stars 356 forks source link

code format lose efficacy #944

Open a44281071 opened 2 years ago

a44281071 commented 2 years ago

Environment

Description

Problem after update vs and update extensions.

Steps to recreate

  1. update vs to 17.3.3
  2. update vs extension 'XAML styler' to 3.2208.1
  3. update vs extension 'Live Share 2022' to 1.0.5701.0

Current behavior

fomate code (ctrl+m, space) not working in *.cs files.

Expected behavior

Formate my *.cs file.

codecadwallader commented 1 year ago

Thank you for reporting the issue. If you turn on CodeMaid's diagnostics mode do you get any information?

Diagnostics can be turned on at CodeMaid->Options->General->Diagnostic mode. When it is enabled it will print out extra logging information to the Output tool window under a CodeMaid pane.

a44281071 commented 1 year ago

Thanks. There's a problem here:

Include file types include Regular expressions that match path names to include or leave empty to include files (ex: .resx$ or \lib\ )

\.axaml$

But how to add a custom file to format?

codecadwallader commented 1 year ago

Is the file extension .axaml? That won't be recognized/mapped by default but if you select the "Everything else (e.g. TXT)" option it will perform basic clean up on any kind of file.