ReGitLint icon indicating copy to clipboard operation
ReGitLint copied to clipboard

Associate file types to certain formatters

Open tcartwright opened this issue 1 year ago • 2 comments

Question, is it possible to set certain file types to specific formatters? Example:

XML:

  • csproj
  • targets
  • props

etc..?

tcartwright avatar Dec 03 '24 00:12 tcartwright

Haven't tried, but maybe this helps: https://blog.jetbrains.com/dotnet/2024/11/13/resharper-2024-3-release/#code-styles-and-cleanup-enhancements

bkoelman avatar Dec 03 '24 01:12 bkoelman

I tried this and it did not work:

[*.{csproj,sfproj,dbproj,webproj,deployproj,props,targets}]
indent_style = tab
indent_size = 4
resharper_substitution_for_cleanup_profile=* => Built-in: Reformat Code

Still investigating. When I tried this:

dotnet regitlint -p "**/*.csproj"

I got:

error: No items were found to cleanup.

tcartwright avatar Dec 05 '24 22:12 tcartwright