Cleanup Code command line tool reformatting with wrong indentation
Hi, I've been debugging this issue for a couple days now and am starting to run out of ideas. Any help/insight is welcome.
Essentially, when I run the cleanupcode.exe on files with a .DotSettings that sets indentation to use Tabs instead of spaces, it will still reformat the files with 4 spaces per indent instead of tabs. When I reformat a file or indent a selected block within Rider itself, it correctly applies tabs instead of spaces. When I run “Code > Reformat and Cleanup…” from within the Rider editor, it properly applies tabs too. Just not with cleanupcode.exe when passing the .DotSettings I generate from Rider.
My intent is to use the Cleanup Code tool as a git hook on pre-commit to enforce formatting standards for all team members (which do NOT all use ReSharper/Rider).
Some of the basic info for the project:
- The project is a Unity project (so C# solution).
- Hosted on a private server using GitLab.
- I'm using Rider as my IDE, and to generated all of the .DotSettings or .editorconfig files.
- In Rider, I have deactivated the option “Detect and use existing file indents for editing” in all schemes.
- My .DotSettings file was generated from Rider, using the layer “This Computer”, which is where all my settings are saved, there is nothing in the team or personal layer.
- I'm using the command line tools version 2023.2.1.
- All of the paths in the script below are valid and working, and all of the files I want to be reformatted are processed, it just doesn't properly apply indentation to tabs instead of spaces.
- I have tried using a .editorconfig instead of .DotSettings with the same results (spaces instead of tabs).
- For some reason, Rider generates my .editorconfig with “indent_style = space” for .cs files (instead of tab as I have set in the Rider settings), but even if I manually edit this field to “tab”, my .cs files are still being formatted with spaces instead of tabs.
- My settings inside Rider are set to use Tabs for C# and HTML (I set HTML to use tabs too since the cleanup code tool seems to apply HTML formatting in .cs files too).
- My Rider Code Style settings have the same scheme for Project and IDE, which both have the same settings as I said just above.
- My generated .DotSettings has the indents listed as tabs, not spaces.
- I have tried running cleanupcode.exe with the whole solution directly instead of specifying files. The result was the same.
My bash script looks like this
#!/bin/bash
# This script requires JetBrains' Cleanup Code command line tool as well as .Net Core framework installed.
cd "${0/*}"
# contents: C:/Workspace/Bishop/CodeCleanupTests/TestUnityLinter/TestUnityLinter.sln
sln=$(cat ./MainSolution.txt)
# contents: C:/Workspace/Bishop/CodeCleanupTests/
root=$(cat ./PathToGitProjectDirectory.txt)
# contents: **.cs;**.cshtml;**.h;**.c;**.cpp
inclusions=$(cat ./Inclusions.txt)
# contents: **.csproj;**/Library/**.*;**/obj/**.*;**/Temp/**.*;**/Logs/**.*;**/Packages/**.*;**/UserSettings/**.*;**/ProjectSettings/**.*
exclusions=$(cat ./Exclusions.txt)
# contents: C:/Workspace/Tools/JetBrains.ReSharper.CommandLineTools.2023.2.1/cleanupcode.exe
cleanup=$(cat ./PathToCleanupCodeExe.txt)
# contents: Built-in: Reformat & Apply Syntax Style
profile=$(cat ./CleanupCodeProfile.txt)
#contents: .DotSettings
format_ext=$(cat ./FormatSettingsFileExtension.txt)
# Change working directory to the root of the git project folder.
cd "$root"
# Find all modified files that still exist (so not deleted ones)
files=()
while read -d $'\0' modified_file
do
files+=("${modified_file}")
done < <(git diff HEAD -z --name-only --diff-filter=ACMR)
echo "Files to process: ${files[@]}"
echo
# Cleanup all modified files with our custom settings file (usually .DotSettings or .editorconfig).
"$cleanup" "${files[@]}" --profile="$profile" --settings="${sln}.shared${format_ext}" --include="$inclusions" --exclude="$exclusions"
The last line is equivalent to calling:
C:/Workspace/Tools/JetBrains.ReSharper.CommandLineTools.2023.2.1/cleanupcode.exe TestUnityLinter/Assets/Scripts/BadlyFormattedScript.cs --profile="Built-in: Reformat & Apply Syntax Style" --settings="C:/Workspace/Bishop/CodeCleanupTests/TestUnityLinter/TestUnityLinter.sln.shared.DotSettings" --include="**.cs;**.cshtml;**.h;**.c;**.cpp" --exclude="**.csproj;**/Library/**.*;**/obj/**.*;**/Temp/**.*;**/Logs/**.*;**/Packages/**.*;**/UserSettings/**.*;**/ProjectSettings/**.*"In which all paths & files are valid, and the .cs file is being processed.
Additionally, the .DotSettings being used for the cleanup:
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CheckNamespace/@EntryIndexedValue">SUGGESTION</s:String>
<s:Boolean x:Key="/Default/CodeInspection/Roslyn/LegacySeveritiesMigrated/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeCleanup/RecentlyUsedProfile/@EntryValue">Built-in: Reformat Code</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CommonFormatter/SHOW_AUTODETECT_CONFIGURE_FORMATTING_TIP/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_ARGUMENT/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_CTOR_INIT/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_EXTENDS_LIST/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_PARAMETER/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_TYPE_ARGUMENT/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_TYPE_PARAMETER/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTIPLE_DECLARATION/@EntryValue">False</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_TERNARY/@EntryValue">NONE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/CASE_BLOCK_BRACES/@EntryValue">NEXT_LINE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/EMPTY_BLOCK_STYLE/@EntryValue">TOGETHER_SAME_LINE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/FUNCTION_DECLARATION_RETURN_TYPE_STYLE/@EntryValue">ON_SINGLE_LINE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/FUNCTION_DEFINITION_RETURN_TYPE_STYLE/@EntryValue">ON_SINGLE_LINE</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_CLASS_MEMBERS_FROM_ACCESS_SPECIFIERS/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_INVOCATION_PARS/@EntryValue">OUTSIDE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_METHOD_DECL_PARS/@EntryValue">OUTSIDE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_STATEMENT_PARS/@EntryValue">OUTSIDE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_STYLE/@EntryValue">Tab</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_WRAPPED_FUNCTION_NAMES/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/LINKAGE_SPECIFICATION_BRACES/@EntryValue">NEXT_LINE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/SIMPLE_CASE_STATEMENT_STYLE/@EntryValue">LINE_BREAK</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/SIMPLE_EMBEDDED_STATEMENT_STYLE/@EntryValue">LINE_BREAK</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_DATA_MEMBERS/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_DATA_MEMBERS/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_INITIALIZER_BRACES/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_TEMPLATE_PARAMS/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_INITIALIZER_BRACES/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/TOPLEVEL_FUNCTION_DECLARATION_RETURN_TYPE_STYLE/@EntryValue">ON_SINGLE_LINE</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/TOPLEVEL_FUNCTION_DEFINITION_RETURN_TYPE_STYLE/@EntryValue">ON_SINGLE_LINE</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/USE_CONTINUOUS_LINE_INDENT_IN_EXPRESSION_BRACES/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/USE_CONTINUOUS_LINE_INDENT_IN_METHOD_PARS/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_FIRST_TYPE_PARAMETER_CONSTRAINT/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_BINARY_EXPRESSIONS_CHAIN/@EntryValue">False</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGNMENT_TAB_FILL_STYLE/@EntryValue">OPTIMAL_FILL</s:String>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AFTER_BLOCK_STATEMENTS/@EntryValue">0</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_AUTO_PROPERTY/@EntryValue">0</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_BLOCK_CASE_SECTION/@EntryValue">1</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_FIELD/@EntryValue">0</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_MULTILINE_CASE_SECTION/@EntryValue">1</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_PROPERTY/@EntryValue">0</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_SINGLE_LINE_TYPE/@EntryValue">0</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_INSIDE_REGION/@EntryValue">0</s:Int64>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/EMPTY_BLOCK_STYLE/@EntryValue">TOGETHER_SAME_LINE</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_CASE_FROM_SWITCH/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_FOR_STMT/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_FOREACH_STMT/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_WHILE_STMT/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_PREPROCESSOR_IF/@EntryValue">USUAL_INDENT</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_PREPROCESSOR_OTHER/@EntryValue">USUAL_INDENT</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_STYLE/@EntryValue">Tab</s:String>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_CODE/@EntryValue">1</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue">1</s:Int64>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_EXISTING_ATTRIBUTE_ARRANGEMENT/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_EXISTING_DECLARATION_BLOCK_ARRANGEMENT/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_EXISTING_ENUM_ARRANGEMENT/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_EXISTING_SWITCH_EXPRESSION_ARRANGEMENT/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/LINE_FEED_AT_FILE_END/@EntryValue">True</s:Boolean>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/MAX_ARRAY_INITIALIZER_ELEMENTS_ON_LINE/@EntryValue">100</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/MAX_ENUM_MEMBERS_ON_LINE/@EntryValue">5</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/MAX_FORMAL_PARAMETERS_ON_LINE/@EntryValue">10</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/MAX_INITIALIZER_ELEMENTS_ON_LINE/@EntryValue">3</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/MAX_INVOCATION_ARGUMENTS_ON_LINE/@EntryValue">100</s:Int64>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/OUTDENT_STATEMENT_LABELS/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_ACCESSOR_ATTRIBUTE_ON_SAME_LINE_EX/@EntryValue">NEVER</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_ACCESSORHOLDER_ATTRIBUTE_ON_SAME_LINE_EX/@EntryValue">NEVER</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE_EX/@EntryValue">NEVER</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_SIMPLE_EMBEDDED_STATEMENT_ON_SAME_LINE/@EntryValue">NEVER</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_SIMPLE_ENUM_ON_SINGLE_LINE/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_AFTER_OPERATOR_KEYWORD/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_BETWEEN_ATTRIBUTE_SECTIONS/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/STICK_COMMENT/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/USE_INDENT_FROM_PREVIOUS_ELEMENT/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_AFTER_DOT_IN_METHOD_CALLS/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_ARRAY_INITIALIZER_STYLE/@EntryValue">CHOP_ALWAYS</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_BEFORE_FIRST_TYPE_PARAMETER_CONSTRAINT/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_OBJECT_AND_COLLECTION_INITIALIZER_STYLE/@EntryValue">CHOP_ALWAYS</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/HtmlFormatter/INDENT_STYLE/@EntryValue">Tab</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/ShaderLabFormat/ALIGNMENT_TAB_FILL_STYLE/@EntryValue">OPTIMAL_FILL</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/ShaderLabFormat/INDENT_STYLE/@EntryValue">Tab</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/VBFormat/INDENT_STYLE/@EntryValue">Tab</s:String>
<s:Boolean x:Key="/Default/CodeStyle/EncapsulateField/UseAutoProperty/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/Generate/=CppConstructor/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Generate/=CppConstructor/Options/=AcceptParameterKind/@EntryIndexedValue">Const reference</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppConstructor/Options/=AccessRight/@EntryIndexedValue">public</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppConstructor/Options/=DefaultEmptyConstructors/@EntryIndexedValue">True</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppConstructor/Options/=InsertExplicitSpecifier/@EntryIndexedValue">True</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppConstructor/Options/=UseConstParameterTypes/@EntryIndexedValue">False</s:String>
<s:Boolean x:Key="/Default/CodeStyle/Generate/=CppCopyAndMoveOperations/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Generate/=CppCopyAndMoveOperations/Options/=AccessRight/@EntryIndexedValue">public</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppCopyAndMoveOperations/Options/=CopyOperationsKind/@EntryIndexedValue">implement</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppCopyAndMoveOperations/Options/=MakeMoveOperationsNoexcept/@EntryIndexedValue">True</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppCopyAndMoveOperations/Options/=MoveOperationsKind/@EntryIndexedValue">implement</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppCopyAndMoveOperations/Options/=SwapBasedAssignment/@EntryIndexedValue">False</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=CppCopyAndMoveOperations/Options/=UseUniformInitialization/@EntryIndexedValue">False</s:String>
<s:Boolean x:Key="/Default/CodeStyle/Generate/=Implementations/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Generate/=Implementations/Options/=Async/@EntryIndexedValue">False</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=Implementations/Options/=Mutable/@EntryIndexedValue">False</s:String>
<s:Boolean x:Key="/Default/CodeStyle/Generate/=Overrides/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Generate/=Overrides/Options/=Async/@EntryIndexedValue">False</s:String>
<s:String x:Key="/Default/CodeStyle/Generate/=Overrides/Options/=Mutable/@EntryIndexedValue">False</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Class_0020and_0020struct_0020fields/@EntryIndexedValue"><NamingElement Priority="11"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="class field" /><type Name="struct field" /></Descriptor><Policy Inspect="True" Prefix="m_" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Class_0020and_0020struct_0020methods/@EntryIndexedValue"><NamingElement Priority="10"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="member function" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Class_0020and_0020struct_0020public_0020fields/@EntryIndexedValue"><NamingElement Priority="12"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="PUBLIC"><type Name="class field" /><type Name="struct field" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Classes_0020and_0020structs/@EntryIndexedValue"><NamingElement Priority="1"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="__interface" /><type Name="class" /><type Name="struct" /></Descriptor><Policy Inspect="True" Prefix="U" Suffix="" Style="AaBb_AaBb"><ExtraRule Prefix="F" Suffix="" Style="AaBb_AaBb" /><ExtraRule Prefix="S" Suffix="" Style="AaBb_AaBb" /><ExtraRule Prefix="T" Suffix="" Style="AaBb_AaBb" /></Policy></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Enum_0020members/@EntryIndexedValue"><NamingElement Priority="14"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="scoped enumerator" /><type Name="unscoped enumerator" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Enums/@EntryIndexedValue"><NamingElement Priority="3"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="enum" /></Descriptor><Policy Inspect="True" Prefix="E" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Events/@EntryIndexedValue"><NamingElement Priority="21"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="event" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Global_0020constants/@EntryIndexedValue"><NamingElement Priority="16"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="True" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="global variable" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Global_0020functions/@EntryIndexedValue"><NamingElement Priority="9"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="global function" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Global_0020variables/@EntryIndexedValue"><NamingElement Priority="8"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="global variable" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Local_0020variables/@EntryIndexedValue"><NamingElement Priority="7"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="local variable" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Namespaces/@EntryIndexedValue"><NamingElement Priority="17"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="namespace" /><type Name="namespace alias" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Other_0020constants/@EntryIndexedValue"><NamingElement Priority="15"><Descriptor Static="True" Constexpr="Indeterminate" Const="True" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="class field" /><type Name="local variable" /><type Name="struct field" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Parameters/@EntryIndexedValue"><NamingElement Priority="6"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="function parameter" /><type Name="lambda parameter" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Properties/@EntryIndexedValue"><NamingElement Priority="20"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="property" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Template_0020parameters/@EntryIndexedValue"><NamingElement Priority="5"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="non-type template parameter" /><type Name="type template parameter" /></Descriptor><Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Typedefs/@EntryIndexedValue"><NamingElement Priority="18"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="type alias" /><type Name="typedef" /></Descriptor><Policy Inspect="True" Prefix="U" Suffix="" Style="AaBb_AaBb"><ExtraRule Prefix="F" Suffix="" Style="AaBb_AaBb" /><ExtraRule Prefix="S" Suffix="" Style="AaBb_AaBb" /><ExtraRule Prefix="T" Suffix="" Style="AaBb_AaBb" /></Policy></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Union_0020members/@EntryIndexedValue"><NamingElement Priority="13"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="union member" /></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CppNaming/Rules/=Unions/@EntryIndexedValue"><NamingElement Priority="4"><Descriptor Static="Indeterminate" Constexpr="Indeterminate" Const="Indeterminate" Volatile="Indeterminate" Accessibility="NOT_APPLICABLE"><type Name="union" /></Descriptor><Policy Inspect="True" Prefix="F" Suffix="" Style="AaBb_AaBb" /></NamingElement></s:String>
<s:Boolean x:Key="/Default/CodeStyle/Naming/CSharpAutoNaming/IsNotificationDisabled/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=Constants/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=EnumMember/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=LocalConstants/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB"><ExtraRule Prefix="" Suffix="" Style="aaBb" /></Policy></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=LocalFunctions/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=Method/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateConstants/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="m_" Suffix="" Style="AaBb" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="s_" Suffix="" Style="AaBb" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB"><ExtraRule Prefix="s_" Suffix="" Style="AaBb" /><ExtraRule Prefix="" Suffix="" Style="AaBb" /></Policy></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=Property/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="AaBb_AaBb" /></Policy></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PublicFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=StaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB"><ExtraRule Prefix="" Suffix="" Style="AaBb" /></Policy></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=5f0fdb63_002Dc892_002D4d2c_002D9324_002D15c80b22a7ef/@EntryIndexedValue"><Policy><Descriptor Staticness="Instance" AccessRightKinds="Any" Description="Unity serialized field"><ElementKinds><Kind Name="UNITY_SERIALISED_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="m_" Suffix="" Style="AaBb" /></Policy></s:String>
</wpf:ResourceDictionary>
Please sign in to leave a comment.
Hello Ben,
Could you please also provide .editorconfig file used in your project?
Thanks in advance.
Hi Angelina,
Here's the .editorconfig
root = true[*]charset = utf-8-bomend_of_line = crlftrim_trailing_whitespace = falseinsert_final_newline = falseindent_style = tabtab_width = 4# Microsoft .NET propertiescsharp_indent_switch_labels = falsecsharp_new_line_before_members_in_object_initializers = falsecsharp_preferred_modifier_order = public, private, protected, internal, file, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async, required:suggestioncsharp_style_prefer_utf8_string_literals = true:suggestioncsharp_style_var_elsewhere = true:suggestioncsharp_style_var_for_built_in_types = true:suggestioncsharp_style_var_when_type_is_apparent = true:suggestiondotnet_naming_rule.constants_rule.import_to_resharper = as_predefineddotnet_naming_rule.constants_rule.severity = warningdotnet_naming_rule.constants_rule.style = all_upper_styledotnet_naming_rule.constants_rule.symbols = constants_symbolsdotnet_naming_rule.local_constants_rule.import_to_resharper = as_predefineddotnet_naming_rule.local_constants_rule.resharper_style = AA_BB, aaBbdotnet_naming_rule.local_constants_rule.severity = warningdotnet_naming_rule.local_constants_rule.style = all_upper_styledotnet_naming_rule.local_constants_rule.symbols = local_constants_symbolsdotnet_naming_rule.local_functions_rule.import_to_resharper = as_predefineddotnet_naming_rule.local_functions_rule.severity = warningdotnet_naming_rule.local_functions_rule.style = upper_camel_case_underscore_tolerant_styledotnet_naming_rule.local_functions_rule.symbols = local_functions_symbolsdotnet_naming_rule.method_rule.import_to_resharper = as_predefineddotnet_naming_rule.method_rule.severity = warningdotnet_naming_rule.method_rule.style = upper_camel_case_underscore_tolerant_styledotnet_naming_rule.method_rule.symbols = method_symbolsdotnet_naming_rule.private_constants_rule.import_to_resharper = as_predefineddotnet_naming_rule.private_constants_rule.severity = warningdotnet_naming_rule.private_constants_rule.style = all_upper_styledotnet_naming_rule.private_constants_rule.symbols = private_constants_symbolsdotnet_naming_rule.private_instance_fields_rule.import_to_resharper = as_predefineddotnet_naming_rule.private_instance_fields_rule.severity = warningdotnet_naming_rule.private_instance_fields_rule.style = m_upper_camel_case_styledotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbolsdotnet_naming_rule.private_static_fields_rule.import_to_resharper = as_predefineddotnet_naming_rule.private_static_fields_rule.severity = warningdotnet_naming_rule.private_static_fields_rule.style = s_upper_camel_case_styledotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbolsdotnet_naming_rule.private_static_readonly_rule.import_to_resharper = as_predefineddotnet_naming_rule.private_static_readonly_rule.resharper_style = AA_BB, s_ + AaBb, AaBbdotnet_naming_rule.private_static_readonly_rule.severity = warningdotnet_naming_rule.private_static_readonly_rule.style = all_upper_styledotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbolsdotnet_naming_rule.property_rule.import_to_resharper = as_predefineddotnet_naming_rule.property_rule.resharper_style = AaBb, AaBb_AaBbdotnet_naming_rule.property_rule.severity = warningdotnet_naming_rule.property_rule.style = upper_camel_case_styledotnet_naming_rule.property_rule.symbols = property_symbolsdotnet_naming_rule.static_readonly_rule.import_to_resharper = as_predefineddotnet_naming_rule.static_readonly_rule.resharper_style = AA_BB, AaBbdotnet_naming_rule.static_readonly_rule.severity = warningdotnet_naming_rule.static_readonly_rule.style = all_upper_styledotnet_naming_rule.static_readonly_rule.symbols = static_readonly_symbolsdotnet_naming_rule.unity_serialized_field_rule.import_to_resharper = Truedotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized fielddotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7efdotnet_naming_rule.unity_serialized_field_rule.severity = warningdotnet_naming_rule.unity_serialized_field_rule.style = m_upper_camel_case_styledotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbolsdotnet_naming_style.all_upper_style.capitalization = all_upperdotnet_naming_style.all_upper_style.word_separator = _dotnet_naming_style.m_upper_camel_case_style.capitalization = pascal_casedotnet_naming_style.m_upper_camel_case_style.required_prefix = m_dotnet_naming_style.s_upper_camel_case_style.capitalization = pascal_casedotnet_naming_style.s_upper_camel_case_style.required_prefix = s_dotnet_naming_style.upper_camel_case_style.capitalization = pascal_casedotnet_naming_style.upper_camel_case_underscore_tolerant_style.capitalization = pascal_casedotnet_naming_style.upper_camel_case_underscore_tolerant_style.word_separator = _dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protecteddotnet_naming_symbols.constants_symbols.applicable_kinds = fielddotnet_naming_symbols.constants_symbols.required_modifiers = constdotnet_naming_symbols.local_constants_symbols.applicable_accessibilities = *dotnet_naming_symbols.local_constants_symbols.applicable_kinds = localdotnet_naming_symbols.local_constants_symbols.required_modifiers = constdotnet_naming_symbols.local_functions_symbols.applicable_accessibilities = *dotnet_naming_symbols.local_functions_symbols.applicable_kinds = local_functiondotnet_naming_symbols.method_symbols.applicable_accessibilities = *dotnet_naming_symbols.method_symbols.applicable_kinds = methoddotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = privatedotnet_naming_symbols.private_constants_symbols.applicable_kinds = fielddotnet_naming_symbols.private_constants_symbols.required_modifiers = constdotnet_naming_symbols.private_instance_fields_symbols.applicable_accessibilities = privatedotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = fielddotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = privatedotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = fielddotnet_naming_symbols.private_static_fields_symbols.required_modifiers = staticdotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = privatedotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = fielddotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static,readonlydotnet_naming_symbols.property_symbols.applicable_accessibilities = *dotnet_naming_symbols.property_symbols.applicable_kinds = propertydotnet_naming_symbols.static_readonly_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protecteddotnet_naming_symbols.static_readonly_symbols.applicable_kinds = fielddotnet_naming_symbols.static_readonly_symbols.required_modifiers = static,readonlydotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = *dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds =dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_fielddotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instancedotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:nonedotnet_style_parentheses_in_other_binary_operators = always_for_clarity:nonedotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:nonedotnet_style_predefined_type_for_locals_parameters_members = true:suggestiondotnet_style_predefined_type_for_member_access = true:suggestiondotnet_style_qualification_for_event = false:suggestiondotnet_style_qualification_for_field = false:suggestiondotnet_style_qualification_for_method = false:suggestiondotnet_style_qualification_for_property = false:suggestiondotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion# ReSharper propertiesresharper_align_multiline_binary_expressions_chain = falseresharper_align_multiline_calls_chain = falseresharper_align_multiline_ctor_init = falseresharper_align_multiline_extends_list = falseresharper_align_multiline_type_argument = falseresharper_align_multiline_type_parameter = falseresharper_align_ternary = noneresharper_blank_lines_after_block_statements = 0resharper_blank_lines_around_auto_property = 0resharper_blank_lines_around_block_case_section = 1resharper_blank_lines_around_multiline_case_section = 1resharper_blank_lines_around_property = 0resharper_blank_lines_around_single_line_type = 0resharper_cpp_align_multiline_argument = falseresharper_cpp_align_multiline_parameter = falseresharper_cpp_align_multiple_declaration = falseresharper_cpp_brace_style = next_lineresharper_cpp_indent_invocation_pars = outsideresharper_cpp_indent_method_decl_pars = outsideresharper_cpp_indent_statement_pars = outsideresharper_cpp_indent_style = tabresharper_csharp_alignment_tab_fill_style = optimal_fillresharper_csharp_blank_lines_around_field = 0resharper_csharp_blank_lines_inside_region = 0resharper_csharp_indent_style = tabresharper_csharp_insert_final_newline = trueresharper_csharp_keep_blank_lines_in_code = 1resharper_csharp_keep_blank_lines_in_declarations = 1resharper_csharp_naming_rule.enum_member = AaBb_AaBbresharper_csharp_stick_comment = falseresharper_csharp_use_indent_from_previous_element = falseresharper_empty_block_style = together_same_lineresharper_formatter_off_tag = @formatter:offresharper_formatter_on_tag = @formatter:onresharper_formatter_tags_enabled = trueresharper_function_declaration_return_type_style = on_single_lineresharper_function_definition_return_type_style = on_single_lineresharper_html_indent_style = tabresharper_indent_class_members_from_access_specifiers = trueresharper_indent_nested_foreach_stmt = trueresharper_indent_nested_for_stmt = trueresharper_indent_nested_while_stmt = trueresharper_indent_preprocessor_directives = normalresharper_indent_preprocessor_if = usual_indentresharper_indent_preprocessor_other = usual_indentresharper_indent_switch_labels = falseresharper_indent_wrapped_function_names = trueresharper_keep_existing_attribute_arrangement = trueresharper_keep_existing_declaration_block_arrangement = trueresharper_keep_existing_enum_arrangement = trueresharper_keep_existing_switch_expression_arrangement = falseresharper_max_array_initializer_elements_on_line = 100resharper_max_enum_members_on_line = 5resharper_max_formal_parameters_on_line = 10resharper_max_initializer_elements_on_line = 3resharper_max_invocation_arguments_on_line = 100resharper_outdent_statement_labels = trueresharper_place_accessorholder_attribute_on_same_line = falseresharper_place_accessor_attribute_on_same_line = falseresharper_place_field_attribute_on_same_line = falseresharper_place_simple_embedded_statement_on_same_line = falseresharper_place_simple_enum_on_single_line = trueresharper_shaderlab_alignment_tab_fill_style = optimal_fillresharper_shaderlab_indent_style = tabresharper_show_autodetect_configure_formatting_tip = falseresharper_simple_case_statement_style = line_breakresharper_simple_embedded_statement_style = line_breakresharper_space_after_operator_keyword = falseresharper_space_after_ptr_in_data_members = trueresharper_space_after_ref_in_data_members = trueresharper_space_before_initializer_braces = trueresharper_space_before_template_params = falseresharper_space_between_attribute_sections = falseresharper_space_within_initializer_braces = trueresharper_toplevel_function_declaration_return_type_style = on_single_lineresharper_toplevel_function_definition_return_type_style = on_single_lineresharper_use_continuous_line_indent_in_expression_braces = trueresharper_use_continuous_line_indent_in_method_pars = trueresharper_use_indent_from_vs = falseresharper_vb_indent_style = tabresharper_wrap_after_dot_in_method_calls = trueresharper_wrap_array_initializer_style = chop_alwaysresharper_wrap_before_first_type_parameter_constraint = trueresharper_wrap_object_and_collection_initializer_style = chop_always# ReSharper inspection severitiesresharper_arrange_redundant_parentheses_highlighting = hintresharper_arrange_this_qualifier_highlighting = hintresharper_arrange_type_member_modifiers_highlighting = hintresharper_arrange_type_modifiers_highlighting = hintresharper_built_in_type_reference_style_for_member_access_highlighting = hintresharper_built_in_type_reference_style_highlighting = hintresharper_check_namespace_highlighting = suggestionresharper_redundant_base_qualifier_highlighting = warningresharper_suggest_var_or_type_built_in_types_highlighting = hintresharper_suggest_var_or_type_elsewhere_highlighting = hintresharper_suggest_var_or_type_simple_types_highlighting = hintresharper_web_config_module_not_resolved_highlighting = warningresharper_web_config_type_not_resolved_highlighting = warningresharper_web_config_wrong_module_highlighting = warning[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,jest.config}]indent_style = spaceindent_size = 2[{*.c,*.c++,*.cc,*.cp,*.cpp,*.cppm,*.cu,*.cxx,*.ino,*.ixx,*.usf}]indent_style = tabindent_size = 4[{*.cuh,*.h,*.hh,*.hpp,*.hxx,*.inc,*.inl,*.ipp,*.mpp,*.pch,*.tcc,*.tpp,*.ush}]indent_style = tabindent_size = 4[{*.cg,*.cginc,*.compute,*.hlsl,*.hlslinc}]indent_style = tabindent_size = 4[{*.ant,*.appxmanifest,*.axml,*.cscfg,*.csdef,*.disco,*.dotsettings,*.filelayout,*.fxml,*.jhm,*.jnlp,*.jrxml,*.manifest,*.myapp,*.nuspec,*.rng,*.stylecop,*.svcmap,*.tld,*.wadcfgx,*.webref,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul,StyleCop.Cache}]indent_style = spaceindent_size = 4[*.cs]indent_style = tabindent_size = 4[{*.androidproj,*.ccproj,*.csproj}]indent_style = spaceindent_size = 4[*.plist]indent_style = spaceindent_size = 4[.editorconfig]indent_style = spaceindent_size = 4[{*.yaml,*.yml}]indent_style = spaceindent_size = 2[*.svg]indent_style = spaceindent_size = 4[{*.markdown,*.md}]indent_style = spaceindent_size = 4[*.shader]indent_style = spaceindent_size = 4[*.asmdef]indent_style = spaceindent_size = 2[*.uxml]indent_style = spaceindent_size = 4[*.uss]indent_style = spaceindent_size = 4[*.{asax,ascx,aspx,c,c++,cc,cginc,compute,cp,cpp,cppm,cs,cshtml,cu,cuh,cxx,fx,fxh,h,hh,hlsl,hlsli,hlslinc,hpp,hxx,inc,inl,ino,ipp,ixx,master,mpp,mq4,mq5,mqh,razor,shader,skin,tpp,usf,ush,vb}]indent_style = tabindent_size = tabtab_width = 4[*.{appxmanifest,axaml,build,dtd,fs,fsi,fsscript,fsx,ml,mli,nuspec,paml,resw,resx,xaml,xamlx,xoml,xsd}]indent_style = spaceindent_size = 4tab_width = 4Hello Ben,
thank you for the info.
First of all, it seems that cleanupcode.exe doesn't see .editorconfig file in your case fo some reason. Could you please let me know where it's located.
Also, as a wild guess, could you please add the following line to the .dotSettings file and try to run cleanupcode.exe once again. Please let me know if it makes any difference.
Thank you.
Hi Angelina,
Your fix worked, thanks a lot. it is intended that it doesn't see the .editorconfig as I want it to run with the manually specified .DotSettings config only. I delete the .editorconfig when I run my tests (unless I test with the .editorconfig formatting, then I delete the .DotSettings).
Is there by any chance an equivalent in .editorconfig files to the line you posted above? Also, is this setting editable somewhere in the settings in Rider?
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/USE_INDENT_FROM_VS/@EntryValue">False</s:Boolean>Hello Ben,
Sorry for the delay in responding.
There seems to be an issue relevant to ReSharper settings as it's VS plugin, it can inherit setting from VS.
I've filed a corresponding report - cleanupcode.exe behaves as "USE_INDENT_FROM_VS" option is set to True.
As a workaround please use the following .editorconfig setting:
Let me know if you have any more questions.
Thank you.