24 instantiations of CodeStylePreference
Microsoft.VisualStudio.LanguageServices.CSharp (18)
Options\Formatting\StyleViewModel.cs (18)
2230new CodeStylePreference(CSharpVSResources.Inside_namespace, isChecked: false), 2231new CodeStylePreference(CSharpEditorResources.Outside_namespace, isChecked: false), 2236new CodeStylePreference(CSharpVSResources.Prefer_this, isChecked: true), 2237new CodeStylePreference(CSharpVSResources.Do_not_prefer_this, isChecked: false), 2242new CodeStylePreference(ServicesVSResources.Prefer_predefined_type, isChecked: true), 2243new CodeStylePreference(ServicesVSResources.Prefer_framework_type, isChecked: false), 2248new CodeStylePreference(CSharpVSResources.Prefer_var, isChecked: true), 2249new CodeStylePreference(CSharpVSResources.Prefer_explicit_type, isChecked: false), 2373new CodeStylePreference(EditorFeaturesResources.Yes, isChecked: false), 2374new CodeStylePreference(EditorFeaturesResources.No, isChecked: false), 2375new CodeStylePreference(CSharpVSResources.When_on_multiple_lines, isChecked: false), 2392new CodeStylePreference(CSharpVSResources.Block_scoped, isChecked: false), 2393new CodeStylePreference(CSharpVSResources.File_scoped, isChecked: false), 2410new CodeStylePreference(ServicesVSResources.Never, isChecked: false), 2411new CodeStylePreference(CSharpVSResources.When_possible, isChecked: false), 2412new CodeStylePreference(CSharpVSResources.When_on_single_line, isChecked: false), 2478new CodeStylePreference(ServicesVSResources.Unused_local, isChecked: false), 2479new CodeStylePreference(CSharpVSResources.Discard, isChecked: true),
Microsoft.VisualStudio.LanguageServices.Implementation (6)
Options\AbstractOptionPreviewViewModel.cs (4)
220codeStylePreferences.Add(new CodeStylePreference(ServicesVSResources.Always_for_clarity, isChecked: defaultAddForClarity)); 223codeStylePreferences.Add(new CodeStylePreference( 237new CodeStylePreference(ServicesVSResources.Non_public_methods, isChecked: false), 238new CodeStylePreference(ServicesVSResources.All_methods, isChecked: true),
Options\Style\AbstractCodeStyleOptionViewModel.cs (2)
82new CodeStylePreference(EditorFeaturesResources.Yes, isChecked: true), 83new CodeStylePreference(EditorFeaturesResources.No, isChecked: false),
20 references to CodeStylePreference
Microsoft.VisualStudio.LanguageServices.CSharp (8)
Options\Formatting\StyleViewModel.cs (8)
2228var usingDirectivePlacementPreferences = new List<CodeStylePreference> 2234var qualifyMemberAccessPreferences = new List<CodeStylePreference> 2240var predefinedTypesPreferences = new List<CodeStylePreference> 2246var typeStylePreferences = new List<CodeStylePreference> 2371var bracesPreferences = new List<CodeStylePreference> 2390var preferences = new List<CodeStylePreference> 2408var expressionBodyPreferences = new List<CodeStylePreference> 2476var unusedValuePreferences = new List<CodeStylePreference>
Microsoft.VisualStudio.LanguageServices.Implementation (12)
Options\AbstractOptionPreviewViewModel.cs (2)
217var codeStylePreferences = new List<CodeStylePreference>(); 235var unusedParameterPreferences = new List<CodeStylePreference>
Options\Style\AbstractCodeStyleOptionViewModel.cs (4)
38public List<CodeStylePreference> Preferences { get; set; } 41public abstract CodeStylePreference SelectedPreference { get; set; } 55List<CodeStylePreference> preferences = null, 78private static List<CodeStylePreference> GetDefaultPreferences()
Options\Style\BooleanCodeStyleOptionViewModel.cs (3)
23private CodeStylePreference _selectedPreference; 34List<CodeStylePreference> preferences = null, 51public override CodeStylePreference SelectedPreference
Options\Style\EnumCodeStyleOptionViewModel.cs (3)
34private CodeStylePreference _selectedPreference; 45List<CodeStylePreference> preferences) 77public override CodeStylePreference SelectedPreference