Skip to content

Commit 536c81b

Browse files
committed
Resharper settings. Revert to USE_SPACES for alignment.
After some discussion between myself and Alexander, we've agreed to go back to USE_SPACES. To summarize the arguments: USE_SPACES and OPTIMAL_FILL both have the drawback of mixing tabs and spaces, but OPTIMAL_FILL have the additional problem of giving inconsistent results with different tab width settings. It appears impractical to ensure the same tab width is used in ALL tools, also in web based tools. USE_TABS is useless because it doesn't allow correct indenting. Switching to using space only, for both indenting and alignment, would give consistent result, but would involve a complete reformat of all files, which we don't want to do again. So, it remains that tabs for indent plus USE_SPACES for alignment is the least bad option that's practical for us.
1 parent 41bb212 commit 536c81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate.sln.DotSettings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<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">
2-
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CommonFormatter/ALIGNMENT_TAB_FILL_STYLE/@EntryValue">OPTIMAL_FILL</s:String>
2+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CommonFormatter/ALIGNMENT_TAB_FILL_STYLE/@EntryValue">USE_SPACES</s:String>
33
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_LINQ_QUERY/@EntryValue">True</s:Boolean>
44
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_ARGUMENT/@EntryValue">True</s:Boolean>
55
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue">True</s:Boolean>

0 commit comments

Comments
 (0)