16 references to NewLineSetting
Microsoft.VisualStudio.LanguageServices (16)
EditorConfigSettings\Whitespace\ViewModel\NewLineViewModel.cs (16)
46
internal class NewLineViewModel : EnumSettingViewModel<
NewLineSetting
>
55
protected override void ChangePropertyTo(
NewLineSetting
newValue)
59
case
NewLineSetting
.Newline:
62
case
NewLineSetting
.CarriageReturn:
65
case
NewLineSetting
.CarriageReturnNewline:
68
case
NewLineSetting
.NotSet:
74
protected override
NewLineSetting
GetCurrentValue()
78
"\n" =>
NewLineSetting
.Newline,
79
"\r" =>
NewLineSetting
.CarriageReturn,
80
"\r\n" =>
NewLineSetting
.CarriageReturnNewline,
81
_ =>
NewLineSetting
.NotSet,
85
protected override IReadOnlyDictionary<string,
NewLineSetting
> GetValuesAndDescriptions()
89
static IEnumerable<(string description,
NewLineSetting
value)> EnumerateOptions()
91
yield return (ServicesVSResources.Newline_n,
NewLineSetting
.Newline);
92
yield return (ServicesVSResources.Carriage_Return_r,
NewLineSetting
.CarriageReturn);
93
yield return (ServicesVSResources.Carriage_Return_Newline_rn,
NewLineSetting
.CarriageReturnNewline);