Skip to content

Commit 1d3b6ba

Browse files
Added omnisharp formatting options
1 parent 2b0d088 commit 1d3b6ba

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

omnisharp.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"FormattingOptions": {
3+
"NewLine": "\n",
4+
"UseTabs": false,
5+
"TabSize": 2,
6+
"IndentationSize": 2,
7+
"SpacingAfterMethodDeclarationName": true,
8+
"SpaceWithinMethodDeclarationParenthesis": false,
9+
"SpaceBetweenEmptyMethodDeclarationParentheses": false,
10+
"SpaceAfterMethodCallName": true,
11+
"SpaceWithinMethodCallParentheses": false,
12+
"SpaceBetweenEmptyMethodCallParentheses": false,
13+
"SpaceAfterControlFlowStatementKeyword": true,
14+
"SpaceWithinExpressionParentheses": false,
15+
"SpaceWithinCastParentheses": false,
16+
"SpaceWithinOtherParentheses": false,
17+
"SpaceAfterCast": false,
18+
"SpacesIgnoreAroundVariableDeclaration": false,
19+
"SpaceBeforeOpenSquareBracket": false,
20+
"SpaceBetweenEmptySquareBrackets": false,
21+
"SpaceWithinSquareBrackets": false,
22+
"SpaceAfterColonInBaseTypeDeclaration": true,
23+
"SpaceAfterComma": true,
24+
"SpaceAfterDot": false,
25+
"SpaceAfterSemicolonsInForStatement": true,
26+
"SpaceBeforeColonInBaseTypeDeclaration": true,
27+
"SpaceBeforeComma": false,
28+
"SpaceBeforeDot": false,
29+
"SpaceBeforeSemicolonsInForStatement": false,
30+
"SpacingAroundBinaryOperator": "single",
31+
"IndentBraces": false,
32+
"IndentBlock": true,
33+
"IndentSwitchSection": true,
34+
"IndentSwitchCaseSection": true,
35+
"LabelPositioning": "oneLess",
36+
"WrappingPreserveSingleLine": true,
37+
"WrappingKeepStatementsOnSingleLine": true,
38+
"NewLinesForBracesInTypes": false,
39+
"NewLinesForBracesInMethods": false,
40+
"NewLinesForBracesInProperties": false,
41+
"NewLinesForBracesInAccessors": false,
42+
"NewLinesForBracesInAnonymousMethods": false,
43+
"NewLinesForBracesInControlBlocks": false,
44+
"NewLinesForBracesInAnonymousTypes": false,
45+
"NewLinesForBracesInObjectCollectionArrayInitializers": false,
46+
"NewLinesForBracesInLambdaExpressionBody": false,
47+
"NewLineForElse": false,
48+
"NewLineForCatch": false,
49+
"NewLineForFinally": false,
50+
"NewLineForMembersInObjectInit": false,
51+
"NewLineForMembersInAnonymousTypes": false,
52+
"NewLineForClausesInQuery": false
53+
}
54+
}

omnisharp.json.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)