@@ -171,6 +171,20 @@ dotnet_sort_system_directives_first = true
171171csharp_preserve_single_line_blocks = true
172172csharp_preserve_single_line_statements = false
173173
174+ # Rider/ReSharper: Force multi-line formatting for simple if statements
175+ resharper_csharp_place_simple_embedded_statement_on_same_line = never
176+ resharper_csharp_keep_existing_embedded_arrangement = false
177+
178+ # Rider/ReSharper: Keep expression-bodied properties on single line
179+ resharper_csharp_place_expr_property_on_single_line = always
180+ resharper_csharp_place_expr_accessor_on_single_line = always
181+ resharper_csharp_keep_existing_expr_member_arrangement = true
182+
183+ # Rider/ReSharper: Keep simple property/accessor declarations on single line
184+ resharper_csharp_place_simple_accessorholder_on_single_line = true
185+ resharper_csharp_place_simple_accessor_on_single_line = true
186+ resharper_csharp_keep_existing_declaration_block_arrangement = false
187+
174188# Expression-level preferences
175189dotnet_style_object_initializer = true :suggestion
176190dotnet_style_collection_initializer = true :suggestion
@@ -182,9 +196,9 @@ dotnet_style_null_propagation = true:suggestion
182196csharp_style_expression_bodied_methods = false :none
183197csharp_style_expression_bodied_constructors = false :none
184198csharp_style_expression_bodied_operators = false :none
185- csharp_style_expression_bodied_properties = true :none
186- csharp_style_expression_bodied_indexers = true :none
187- csharp_style_expression_bodied_accessors = true :none
199+ csharp_style_expression_bodied_properties = true :suggestion
200+ csharp_style_expression_bodied_indexers = true :suggestion
201+ csharp_style_expression_bodied_accessors = true :suggestion
188202
189203# Property and accessor preferences
190204csharp_style_auto_properties = true :suggestion
@@ -271,7 +285,13 @@ indent_size = 2
271285indent_style = space
272286indent_size = 2
273287
274- [* .{appxmanifest,asax,ascx,aspx,axaml,blockshader,build,c,c++,c++m,cc,ccm,cginc,compute,cp,cpp,cppm,cs,cshtml,cu,cuh,cxx,cxxm,dtd,fs,fsi,fsscript,fsx,fx,fxh,h,h++,hh,hlsl,hlsli,hlslinc,hp,hpp,hxx,icc,inc,inl,ino,ipp,ixx,master,ml,mli,mpp,mq4,mq5,mqh,mxx,nuspec,paml,razor,resw,resx,shader,shaderFoundry,skin,tcc,tpp,urtshader,usf,ush,uxml,vb,xaml,xamlx,xoml,xsd} ]
288+ # Razor/CSHTML files - minimal formatting to avoid breaking Razor directives
289+ [* .cshtml ]
275290indent_style = space
276291indent_size = 4
277292tab_width = 4
293+
294+ [* .{appxmanifest,asax,ascx,aspx,axaml,blockshader,build,c,c++,c++m,cc,ccm,cginc,compute,cp,cpp,cppm,cs,cu,cuh,cxx,cxxm,dtd,fs,fsi,fsscript,fsx,fx,fxh,h,h++,hh,hlsl,hlsli,hlslinc,hp,hpp,hxx,icc,inc,inl,ino,ipp,ixx,master,ml,mli,mpp,mq4,mq5,mqh,mxx,nuspec,paml,razor,resw,resx,shader,shaderFoundry,skin,tcc,tpp,urtshader,usf,ush,uxml,vb,xaml,xamlx,xoml,xsd} ]
295+ indent_style = space
296+ indent_size = 4
297+ tab_width = 4
0 commit comments