Skip to content

Instantly share code, notes, and snippets.

@bjorg
Created July 19, 2019 18:05
Show Gist options
  • Save bjorg/3c17b2e70498621fcbfecfe181959a27 to your computer and use it in GitHub Desktop.
Save bjorg/3c17b2e70498621fcbfecfe181959a27 to your computer and use it in GitHub Desktop.
OmniSharp Settings for K&R formatting
{
"FormattingOptions": {
"NewLinesForBracesInTypes": false,
"NewLinesForBracesInAccessors": false,
"NewLinesForBracesInAnonymousMethods": false,
"NewLinesForBracesInAnonymousTypes": false,
"NewLinesForBracesInLambdaExpressionBody": false,
"NewLinesForBracesInObjectCollectionArrayInitializers": false,
"NewLinesForBracesInProperties": false,
"NewLinesForBracesInControlBlocks": false,
"NewLinesForBracesInMethods": false,
"NewLineForClausesInQuery": false,
"NewLineForCatch": false,
"NewLineForElse": false,
"NewLineForFinally": false,
"NewLineForMembersInObjectInit": false,
"NewLineForMembersInAnonymousTypes": false,
"WrappingPreserveSingleLine": true,
"WrappingKeepStatementsOnSingleLine": true,
"UseTabs": false,
"SpaceSize": 4,
"SpaceAfterCast": false,
"SpaceAfterControlFlowStatementKeyword": false,
"IndentSwitchSection": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment