Skip to content

Commit 6d63d59

Browse files
author
Mircea Trofin
committed
Formalized coding style guidelines.
It is possible to capture most of the coding style guidelines in a corefx.vssettings VS 2013 settings file. Examples of settings that were not captured: avoiding double free lines, or spurious blank spaces.
1 parent 2949719 commit 6d63d59

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed

Diff for: corefx.vssettings

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<UserSettings>
2+
<ApplicationIdentity version="12.0"/>
3+
<ToolsOptions>
4+
<ToolsOptionsCategory name="TextEditor" RegisteredName="TextEditor">
5+
<ToolsOptionsSubCategory name="AllLanguages" RegisteredName="AllLanguages" PackageName="Text Management Package"/>
6+
<ToolsOptionsSubCategory name="CSharp" RegisteredName="CSharp" PackageName="Text Management Package">
7+
<PropertyValue name="TabSize">4</PropertyValue>
8+
<PropertyValue name="InsertTabs">false</PropertyValue>
9+
<PropertyValue name="IndentSize">4</PropertyValue>
10+
<PropertyValue name="BraceCompletion">true</PropertyValue>
11+
</ToolsOptionsSubCategory>
12+
<ToolsOptionsSubCategory name="CSharp-Specific" RegisteredName="CSharp-Specific" PackageName="Visual C# Language Service Package">
13+
<PropertyValue name="NewLines_QueryExpression_EachClause">1</PropertyValue>
14+
<PropertyValue name="Space_Normalize">0</PropertyValue>
15+
<PropertyValue name="Space_AroundBinaryOperator">1</PropertyValue>
16+
<PropertyValue name="Formatting_TriggerOnPaste">1</PropertyValue>
17+
<PropertyValue name="UnboundItem_ExactMatches">3</PropertyValue>
18+
<PropertyValue name="GenerateConstructorSmartTagEnabled">1</PropertyValue>
19+
<PropertyValue name="CompleteOnSpace">1</PropertyValue>
20+
<PropertyValue name="WarnWhenMembersCauseCompilerGeneratedReferences">1</PropertyValue>
21+
<PropertyValue name="CollapseInactiveBlocksOnOpen">1</PropertyValue>
22+
<PropertyValue name="Watson_MaxExceptionsToReport">1</PropertyValue>
23+
<PropertyValue name="EditAndContinueReportEnterBreakStateFailure">1</PropertyValue>
24+
<PropertyValue name="TrackMostRecentlyUsed">1</PropertyValue>
25+
<PropertyValue name="FilterKeywordsContextually">1</PropertyValue>
26+
<PropertyValue name="BringUpOnSpace">1</PropertyValue>
27+
<PropertyValue name="Rename_Preview">0</PropertyValue>
28+
<PropertyValue name="EncapsulateField_PreviewReferenceChanges">1</PropertyValue>
29+
<PropertyValue name="DelayBeforeShowingErrors">1500</PropertyValue>
30+
<PropertyValue name="CollapseRegionBlocksOnOpen">1</PropertyValue>
31+
<PropertyValue name="NewLines_Braces_Method">1</PropertyValue>
32+
<PropertyValue name="HighlightReferences">0</PropertyValue>
33+
<PropertyValue name="RefactorNotifyRenameEnabled">1</PropertyValue>
34+
<PropertyValue name="OnlyScanFirstTypeInFileForDesignerAttribute">0</PropertyValue>
35+
<PropertyValue name="Indent_CaseLabels">1</PropertyValue>
36+
<PropertyValue name="Formatting_TriggerOnBlockCompletion">1</PropertyValue>
37+
<PropertyValue name="CompletionCommitCharacters">{}[]().,:;+-*/%&amp;|^!~=&lt;&gt;?@#'"\</PropertyValue>
38+
<PropertyValue name="EditAndContinueEnabled">1</PropertyValue>
39+
<PropertyValue name="InsertNewlineOnEnterWithWholeWord">0</PropertyValue>
40+
<PropertyValue name="BringUpOnOverride">1</PropertyValue>
41+
<PropertyValue name="CodeDefinitionWindow_DocumentationComment_IndentOffset">2</PropertyValue>
42+
<PropertyValue name="Rename_Comments">0</PropertyValue>
43+
<PropertyValue name="Squiggles_SemanticAnalysis">0</PropertyValue>
44+
<PropertyValue name="NewLines_Braces_ControlFlow">1</PropertyValue>
45+
<PropertyValue name="NewLines_Braces_AnonymousMethod">0</PropertyValue>
46+
<PropertyValue name="Space_WithinOtherParentheses">0</PropertyValue>
47+
<PropertyValue name="BringUpOnIdentifier">0</PropertyValue>
48+
<PropertyValue name="RemoveParameters_PreviewReferenceChanges">1</PropertyValue>
49+
<PropertyValue name="Wrapping_KeepStatementsOnSingleLine">1</PropertyValue>
50+
<PropertyValue name="Space_AfterBasesColon">1</PropertyValue>
51+
<PropertyValue name="Indent_Braces">0</PropertyValue>
52+
<PropertyValue name="CompleteOnNewline">1</PropertyValue>
53+
<PropertyValue name="EncapsulateField_UpdateAllReferences">0</PropertyValue>
54+
<PropertyValue name="Wrapping_IgnoreSpacesAroundVariableDeclaration">0</PropertyValue>
55+
<PropertyValue name="Space_WithinMethodCallParentheses">0</PropertyValue>
56+
<PropertyValue name="Space_AfterCast">0</PropertyValue>
57+
<PropertyValue name="Colorize">1</PropertyValue>
58+
<PropertyValue name="EditAndContinueReportOpenScopeFailure">0</PropertyValue>
59+
<PropertyValue name="FilterToAllowableTypes">1</PropertyValue>
60+
<PropertyValue name="WarnOnBuildErrors">0</PropertyValue>
61+
<PropertyValue name="SortUsings_PlaceSystemFirst">0</PropertyValue>
62+
<PropertyValue name="NewLines_Braces_CollectionInitializer">0</PropertyValue>
63+
<PropertyValue name="Watson_DeferSendingUntilLater">0</PropertyValue>
64+
<PropertyValue name="ShowKeywords">1</PropertyValue>
65+
<PropertyValue name="ShowSnippets">1</PropertyValue>
66+
<PropertyValue name="BraceMatchingRectangle">1</PropertyValue>
67+
<PropertyValue name="NewLines_AnonymousTypeInitializer_EachMember">1</PropertyValue>
68+
<PropertyValue name="NewLines_Keywords_Catch">1</PropertyValue>
69+
<PropertyValue name="NewLines_Braces_ObjectInitializer">0</PropertyValue>
70+
<PropertyValue name="NewLines_Braces_ArrayInitializer">0</PropertyValue>
71+
<PropertyValue name="Space_WithinExpressionParentheses">0</PropertyValue>
72+
<PropertyValue name="Space_InControlFlowConstruct">1</PropertyValue>
73+
<PropertyValue name="Formatting_TriggerOnStatementCompletion">0</PropertyValue>
74+
<PropertyValue name="CodeDefinitionWindow_DocumentationComment_WrapLength">80</PropertyValue>
75+
<PropertyValue name="NewLines_Keywords_Finally">1</PropertyValue>
76+
<PropertyValue name="Space_BetweenEmptyMethodDeclarationParentheses">0</PropertyValue>
77+
<PropertyValue name="Indent_UnindentLabels">0</PropertyValue>
78+
<PropertyValue name="SmartTagEnabled">1</PropertyValue>
79+
<PropertyValue name="SortUsings">1</PropertyValue>
80+
<PropertyValue name="Rename_Strings">0</PropertyValue>
81+
<PropertyValue name="NewLines_ObjectInitializer_EachMember">1</PropertyValue>
82+
<PropertyValue name="NewLines_Keywords_Else">1</PropertyValue>
83+
<PropertyValue name="EnableProgressDialogOnWaitForBackground">1</PropertyValue>
84+
<PropertyValue name="Space_WithinMethodDeclarationParentheses">0</PropertyValue>
85+
<PropertyValue name="Space_BetweenEmptyMethodCallParentheses">0</PropertyValue>
86+
<PropertyValue name="Space_BeforeSemicolonsInForStatement">0</PropertyValue>
87+
<PropertyValue name="Space_BeforeComma">0</PropertyValue>
88+
<PropertyValue name="Space_AfterMethodCallName">0</PropertyValue>
89+
<PropertyValue name="Space_AfterComma">1</PropertyValue>
90+
<PropertyValue name="ExtractInterface_SelectAll">0</PropertyValue>
91+
<PropertyValue name="ReorderParameters_PreviewReferenceChanges">1</PropertyValue>
92+
<PropertyValue name="Wrapping_IgnoreSpacesAroundBinaryOperators">0</PropertyValue>
93+
<PropertyValue name="Space_BeforeBasesColon">1</PropertyValue>
94+
<PropertyValue name="Space_AfterMethodDeclarationName">0</PropertyValue>
95+
<PropertyValue name="Space_AfterDot">0</PropertyValue>
96+
<PropertyValue name="UnboundItemSmartTagEnabled">1</PropertyValue>
97+
<PropertyValue name="AutoComment">1</PropertyValue>
98+
<PropertyValue name="NewLines_Braces_Type">1</PropertyValue>
99+
<PropertyValue name="Space_AfterLambdaArrow">1</PropertyValue>
100+
<PropertyValue name="ImplementInterfaceSmartTagEnabled">1</PropertyValue>
101+
<PropertyValue name="BringUpOnPartial">1</PropertyValue>
102+
<PropertyValue name="CodeDefinitionWindow_DocumentationComment_IndentBase">1</PropertyValue>
103+
<PropertyValue name="EncapsulateField_SearchInStrings">0</PropertyValue>
104+
<PropertyValue name="EnterOutliningModeOnOpen">0</PropertyValue>
105+
<PropertyValue name="NewLines_Braces_LambdaExpressionBody">0</PropertyValue>
106+
<PropertyValue name="Space_WithinSquares">0</PropertyValue>
107+
<PropertyValue name="Space_BeforeLambdaArrow">1</PropertyValue>
108+
<PropertyValue name="ShowHiddenItems">0</PropertyValue>
109+
<PropertyValue name="Squiggles">0</PropertyValue>
110+
<PropertyValue name="NewLines_Braces_AnonymousTypeInitializer">0</PropertyValue>
111+
<PropertyValue name="Space_WithinCastParentheses">0</PropertyValue>
112+
<PropertyValue name="Space_AfterSemicolonsInForStatement">1</PropertyValue>
113+
<PropertyValue name="Indent_CaseContents">0</PropertyValue>
114+
<PropertyValue name="Indent_FlushLabelsLeft">1</PropertyValue>
115+
<PropertyValue name="Watson_ReportExceptions">1</PropertyValue>
116+
<PropertyValue name="GenerateStubSmartTagEnabled">1</PropertyValue>
117+
<PropertyValue name="BringUpOnEventHookup">1</PropertyValue>
118+
<PropertyValue name="ImplementInterface_InsertRegionTags">1</PropertyValue>
119+
<PropertyValue name="Wrapping_PreserveSingleLine">1</PropertyValue>
120+
<PropertyValue name="Space_BetweenEmptySquares">0</PropertyValue>
121+
<PropertyValue name="Space_BeforeOpenSquare">0</PropertyValue>
122+
<PropertyValue name="Space_BeforeDot">0</PropertyValue>
123+
<PropertyValue name="Indent_BlockContents">1</PropertyValue>
124+
<PropertyValue name="RenameSmartTagEnabled">1</PropertyValue>
125+
<PropertyValue name="ColorizeBoundTypes">1</PropertyValue>
126+
<PropertyValue name="RemoveUnusedUsings">1</PropertyValue>
127+
<PropertyValue name="Rename_Overloads">0</PropertyValue>
128+
<PropertyValue name="EncapsulateField_SearchInComments">0</PropertyValue>
129+
<PropertyValue name="Refactoring_Verification_Enabled">0</PropertyValue>
130+
<PropertyValue name="ProgressDialogDelaySeconds">2</PropertyValue>
131+
</ToolsOptionsSubCategory>
132+
</ToolsOptionsCategory>
133+
</ToolsOptions>
134+
</UserSettings>

0 commit comments

Comments
 (0)