18 references to NewLineForElse
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (8)
86
(CSharpFormattingOptions2.
NewLineForElse
, true));
143
(CSharpFormattingOptions2.
NewLineForElse
, false));
168
(CSharpFormattingOptions2.
NewLineForElse
, true));
191
(CSharpFormattingOptions2.
NewLineForElse
, true));
225
(CSharpFormattingOptions2.
NewLineForElse
, true));
232
(CSharpFormattingOptions2.
NewLineForElse
, true),
308
(CSharpFormattingOptions2.
NewLineForElse
, true));
373
var setting = Setting.Create(CSharpFormattingOptions2.
NewLineForElse
, "description", options, updater);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Formatting\CSharpFormattingOptions.cs (2)
174
/// <inheritdoc cref="CSharpFormattingOptions2.
NewLineForElse
"/>
175
public static Option<bool> NewLineForElse { get; } = CSharpFormattingOptions2.
NewLineForElse
.ToPublicOption();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (1)
99
(options.GetOption(CSharpFormattingOptions2.
NewLineForElse
) ? NewLinePlacement.BeforeElse : 0) |
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
Formatting\FormattingTests.cs (3)
2154
{ CSharpFormattingOptions2.
NewLineForElse
, false },
2223
{
NewLineForElse
, false },
6694
{ CSharpFormattingOptions2.
NewLineForElse
, false }
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProvider.cs (1)
88
yield return Setting.Create(CSharpFormattingOptions2.
NewLineForElse
, CSharpVSResources.Place_else_on_new_line, options, updaterService);
Options\AutomationObject\AutomationObject.Formatting.cs (2)
122
get { return GetBooleanOption(CSharpFormattingOptions2.
NewLineForElse
); }
123
set { SetBooleanOption(CSharpFormattingOptions2.
NewLineForElse
, value); }
Options\Formatting\NewLinesViewModel.cs (1)
248
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.
NewLineForElse
, CSharpVSResources.Place_else_on_new_line, s_ifElsePreview, this, optionStore));