Reporter | Manuel Pallier (manuel.pallier) |
---|---|
Created | Apr 12, 2018 11:34:12 AM |
Updated | Apr 17, 2018 12:50:50 PM |
Subsystem | Code Style - Formatter |
Assignee | Dmitry Osinovsky (Dmitry.Osinovsky) |
Priority | Normal |
State | Submitted |
Type | Bug |
Fix version | No Fix versions |
Affected versions | 2018.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
My EditorConfig file contains the following:
[*.{cs,csx,vb,vbx,fs,c,cpp,h,xaml,htm,html,cshtml,vbhtml,js,ts,css,scss,less,sql}]
indent_size = 4
[*.{cs,csx}]
xmldoc_indent_size = 2
The ReSharper options window correctly shows the overridden value of 2 in tooltips in the XML Doc Comments pane. The File Formatting Info window shows both settings as active (not strike through) and an overall indent setting of 4 spaces. I think this is also ok because it makes more sense to show the C# setting here.
But the actual idention used by the "Build-in: Full Cleanup" Code Cleanup is 4 spaces for the XML documentation. For example, the following code is changed to an indent size of 4 after the cleanup:
/// <summary>
/// Summary line
/// </summary>
/// <remarks>
/// <para>Some longer text.</para>
/// <para>Some other longer text.</para>
/// </remarks>
public void DemoMethod()
Tested with 2018.1 EAP 8
Btw, not related to the issue, but why doesn't this property (and similar indent related properties) allow a "resharper_" prefix like most other custom ReSharper properties?