-
Notifications
You must be signed in to change notification settings - Fork 417
/
FormattingOptions.cs
168 lines (114 loc) · 5.78 KB
/
FormattingOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
namespace OmniSharp.Options
{
// TODO: These are mostly C#-specific. Should they be moved into in OmniSharp.Roslyn.CSharp somehow?
public class FormattingOptions
{
public FormattingOptions()
{
//just defaults
NewLine = "\n";
UseTabs = false;
TabSize = 4;
IndentationSize = 4;
SpacingAfterMethodDeclarationName = false;
SpaceWithinMethodDeclarationParenthesis = false;
SpaceBetweenEmptyMethodDeclarationParentheses = false;
SpaceAfterMethodCallName = false;
SpaceWithinMethodCallParentheses = false;
SpaceBetweenEmptyMethodCallParentheses = false;
SpaceAfterControlFlowStatementKeyword = true;
SpaceWithinExpressionParentheses = false;
SpaceWithinCastParentheses = false;
SpaceWithinOtherParentheses = false;
SpaceAfterCast = false;
SpaceBeforeOpenSquareBracket = false;
SpaceBetweenEmptySquareBrackets = false;
SpaceWithinSquareBrackets = false;
SpaceAfterColonInBaseTypeDeclaration = true;
SpaceAfterComma = true;
SpaceAfterDot = false;
SpaceAfterSemicolonsInForStatement = true;
SpaceBeforeColonInBaseTypeDeclaration = true;
SpaceBeforeComma = false;
SpaceBeforeDot = false;
SpaceBeforeSemicolonsInForStatement = false;
SpacingAroundBinaryOperator = "single";
IndentBraces = false;
IndentBlock = true;
IndentSwitchSection = true;
IndentSwitchCaseSection = true;
IndentSwitchCaseSectionWhenBlock = true;
LabelPositioning = "oneLess";
WrappingPreserveSingleLine = true;
WrappingKeepStatementsOnSingleLine = true;
NewLinesForBracesInTypes = true;
NewLinesForBracesInMethods = true;
NewLinesForBracesInProperties = true;
NewLinesForBracesInAccessors = true;
NewLinesForBracesInAnonymousMethods = true;
NewLinesForBracesInControlBlocks = true;
NewLinesForBracesInAnonymousTypes = true;
NewLinesForBracesInObjectCollectionArrayInitializers = true;
NewLinesForBracesInLambdaExpressionBody = true;
NewLineForElse = true;
NewLineForCatch = true;
NewLineForFinally = true;
NewLineForMembersInObjectInit = true;
NewLineForMembersInAnonymousTypes = true;
NewLineForClausesInQuery = true;
}
public bool OrganizeImports { get; set; }
public bool EnableEditorConfigSupport { get; set; }
public string NewLine { get; set; }
public bool UseTabs { get; set; }
public int TabSize { get; set; }
public int IndentationSize { get; set; }
public bool SpacingAfterMethodDeclarationName { get; set; }
public bool SeparateImportDirectiveGroups { get; set; }
public bool SpaceWithinMethodDeclarationParenthesis { get; set; }
public bool SpaceBetweenEmptyMethodDeclarationParentheses { get; set; }
public bool SpaceAfterMethodCallName { get; set; }
public bool SpaceWithinMethodCallParentheses { get; set; }
public bool SpaceBetweenEmptyMethodCallParentheses { get; set; }
public bool SpaceAfterControlFlowStatementKeyword { get; set; }
public bool SpaceWithinExpressionParentheses { get; set; }
public bool SpaceWithinCastParentheses { get; set; }
public bool SpaceWithinOtherParentheses { get; set; }
public bool SpaceAfterCast { get; set; }
public bool SpaceBeforeOpenSquareBracket { get; set; }
public bool SpaceBetweenEmptySquareBrackets { get; set; }
public bool SpaceWithinSquareBrackets { get; set; }
public bool SpaceAfterColonInBaseTypeDeclaration { get; set; }
public bool SpaceAfterComma { get; set; }
public bool SpaceAfterDot { get; set; }
public bool SpaceAfterSemicolonsInForStatement { get; set; }
public bool SpaceBeforeColonInBaseTypeDeclaration { get; set; }
public bool SpaceBeforeComma { get; set; }
public bool SpaceBeforeDot { get; set; }
public bool SpaceBeforeSemicolonsInForStatement { get; set; }
public string SpacingAroundBinaryOperator { get; set; }
public bool IndentBraces { get; set; }
public bool IndentBlock { get; set; }
public bool IndentSwitchSection { get; set; }
public bool IndentSwitchCaseSection { get; set; }
public bool IndentSwitchCaseSectionWhenBlock { get; set; }
public string LabelPositioning { get; set; }
public bool WrappingPreserveSingleLine { get; set; }
public bool WrappingKeepStatementsOnSingleLine { get; set; }
public bool NewLinesForBracesInTypes { get; set; }
public bool NewLinesForBracesInMethods { get; set; }
public bool NewLinesForBracesInProperties { get; set; }
public bool NewLinesForBracesInAccessors { get; set; }
public bool NewLinesForBracesInAnonymousMethods { get; set; }
public bool NewLinesForBracesInControlBlocks { get; set; }
public bool NewLinesForBracesInAnonymousTypes { get; set; }
public bool NewLinesForBracesInObjectCollectionArrayInitializers { get; set; }
public bool NewLinesForBracesInLambdaExpressionBody { get; set; }
public bool NewLineForElse { get; set; }
public bool NewLineForCatch { get; set; }
public bool NewLineForFinally { get; set; }
public bool NewLineForMembersInObjectInit { get; set; }
public bool NewLineForMembersInAnonymousTypes { get; set; }
public bool NewLineForClausesInQuery { get; set; }
}
}