24 references to CodeStylePreference
Microsoft.VisualStudio.LanguageServices.CSharp (18)
Options\Formatting\StyleViewModel.cs (18)
2230
new
CodeStylePreference
(CSharpVSResources.Inside_namespace, isChecked: false),
2231
new
CodeStylePreference
(CSharpEditorResources.Outside_namespace, isChecked: false),
2236
new
CodeStylePreference
(CSharpVSResources.Prefer_this, isChecked: true),
2237
new
CodeStylePreference
(CSharpVSResources.Do_not_prefer_this, isChecked: false),
2242
new
CodeStylePreference
(ServicesVSResources.Prefer_predefined_type, isChecked: true),
2243
new
CodeStylePreference
(ServicesVSResources.Prefer_framework_type, isChecked: false),
2248
new
CodeStylePreference
(CSharpVSResources.Prefer_var, isChecked: true),
2249
new
CodeStylePreference
(CSharpVSResources.Prefer_explicit_type, isChecked: false),
2373
new
CodeStylePreference
(EditorFeaturesResources.Yes, isChecked: false),
2374
new
CodeStylePreference
(EditorFeaturesResources.No, isChecked: false),
2375
new
CodeStylePreference
(CSharpVSResources.When_on_multiple_lines, isChecked: false),
2392
new
CodeStylePreference
(CSharpVSResources.Block_scoped, isChecked: false),
2393
new
CodeStylePreference
(CSharpVSResources.File_scoped, isChecked: false),
2410
new
CodeStylePreference
(ServicesVSResources.Never, isChecked: false),
2411
new
CodeStylePreference
(CSharpVSResources.When_possible, isChecked: false),
2412
new
CodeStylePreference
(CSharpVSResources.When_on_single_line, isChecked: false),
2478
new
CodeStylePreference
(ServicesVSResources.Unused_local, isChecked: false),
2479
new
CodeStylePreference
(CSharpVSResources.Discard, isChecked: true),
Microsoft.VisualStudio.LanguageServices.Implementation (6)
Options\AbstractOptionPreviewViewModel.cs (4)
220
codeStylePreferences.Add(new
CodeStylePreference
(ServicesVSResources.Always_for_clarity, isChecked: defaultAddForClarity));
223
codeStylePreferences.Add(new
CodeStylePreference
(
237
new
CodeStylePreference
(ServicesVSResources.Non_public_methods, isChecked: false),
238
new
CodeStylePreference
(ServicesVSResources.All_methods, isChecked: true),
Options\Style\AbstractCodeStyleOptionViewModel.cs (2)
82
new
CodeStylePreference
(EditorFeaturesResources.Yes, isChecked: true),
83
new
CodeStylePreference
(EditorFeaturesResources.No, isChecked: false),