codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

code format lose efficacy

Open a44281071 opened this issue 3 years ago • 3 comments

Environment

  • Visual Studio version: Enterprise 2022(64) 17.3.3
  • CodeMaid version: 12.0
  • Code language: C#
  • vs extension CM+(oleg-shilo/CodeMaidPlus) 1.1.5
  • vs extension XAML styler 3.2208.1

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.

a44281071 avatar Sep 05 '22 09:09 a44281071

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.

codecadwallader avatar Sep 09 '22 12:09 codecadwallader

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?

a44281071 avatar Sep 13 '22 02:09 a44281071

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.

codecadwallader avatar Sep 19 '22 13:09 codecadwallader