215 references to CSharpVSResources
Microsoft.VisualStudio.LanguageServices.CSharp (214)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Microsoft.VisualStudio.LanguageServices.CSharp.CSharpVSResources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
CSharpVSResources
)));
EditorConfigSettings\BinaryOperatorSpacingOptionsViewModel.cs (3)
38
yield return (
CSharpVSResources
.Ignore_spaces_around_binary_operators, BinaryOperatorSpacingOptions.Ignore);
39
yield return (
CSharpVSResources
.Remove_spaces_before_and_after_binary_operators, BinaryOperatorSpacingOptions.Remove);
40
yield return (
CSharpVSResources
.Insert_space_before_and_after_binary_operators, BinaryOperatorSpacingOptions.Single);
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (28)
74
var trueValueDescription =
CSharpVSResources
.Prefer_var;
75
var falseValueDescription =
CSharpVSResources
.Prefer_explicit_type;
77
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.VarForBuiltInTypes,
CSharpVSResources
.For_built_in_types, options, updater, trueValueDescription, falseValueDescription);
78
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.VarWhenTypeIsApparent,
CSharpVSResources
.When_variable_type_is_apparent, options, updater, trueValueDescription, falseValueDescription);
79
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.VarElsewhere,
CSharpVSResources
.Elsewhere, options, updater, trueValueDescription, falseValueDescription);
84
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferredUsingDirectivePlacement,
CSharpVSResources
.Preferred_using_directive_placement, options, updater,
86
valueDescriptions: [
CSharpVSResources
.Inside_namespace, CSharpEditorResources.Outside_namespace]);
91
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferThrowExpression,
CSharpVSResources
.Prefer_throw_expression, options, updater);
92
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferConditionalDelegateCall,
CSharpVSResources
.Prefer_conditional_delegate_call, options, updater);
109
valueDescriptions: [EditorFeaturesResources.Yes, EditorFeaturesResources.No,
CSharpVSResources
.When_on_multiple_lines]);
113
valueDescriptions: [
CSharpVSResources
.Block_scoped,
CSharpVSResources
.File_scoped]);
124
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferSwitchExpression,
CSharpVSResources
.Prefer_switch_expression, options, updater);
129
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.ImplicitObjectCreationWhenTypeIsApparent,
CSharpVSResources
.Prefer_implicit_object_creation_when_type_is_apparent, options, updater);
130
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferImplicitlyTypedLambdaExpression,
CSharpVSResources
.Prefer_implicitly_typed_lambda_expression, options, updater);
138
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferPatternMatching,
CSharpVSResources
.Prefer_pattern_matching, options, updater);
139
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferPatternMatchingOverIsWithCastCheck,
CSharpVSResources
.Prefer_pattern_matching_over_is_with_cast_check, options, updater);
140
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferPatternMatchingOverAsWithNullCheck,
CSharpVSResources
.Prefer_pattern_matching_over_as_with_null_check, options, updater);
141
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferNotPattern,
CSharpVSResources
.Prefer_pattern_matching_over_mixed_type_check, options, updater);
142
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferExtendedPropertyPattern,
CSharpVSResources
.Prefer_extended_property_pattern, options, updater);
154
var valueDescriptions = new[] { ServicesVSResources.Never,
CSharpVSResources
.When_possible,
CSharpVSResources
.When_on_single_line };
169
var valueDescriptions = new[] { ServicesVSResources.Unused_local,
CSharpVSResources
.Discard };
174
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowEmbeddedStatementsOnSameLine,
CSharpVSResources
.Allow_embedded_statements_on_same_line, options, updater);
175
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLinesBetweenConsecutiveBraces,
CSharpVSResources
.Allow_blank_lines_between_consecutive_braces, options, updater);
176
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLineAfterColonInConstructorInitializer,
CSharpVSResources
.Allow_blank_line_after_colon_in_constructor_initializer, options, updater);
177
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLineAfterTokenInConditionalExpression,
CSharpVSResources
.Allow_blank_line_after_token_in_conditional_expression, options, updater);
178
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLineAfterTokenInArrowExpressionClause,
CSharpVSResources
.Allow_blank_line_after_token_in_arrow_expression_clause, options, updater);
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProvider.cs (47)
48
yield return Setting.Create(CSharpFormattingOptions2.SpacingAfterMethodDeclarationName,
CSharpVSResources
.Insert_space_between_method_name_and_its_opening_parenthesis, options, updaterService);
49
yield return Setting.Create(CSharpFormattingOptions2.SpaceWithinMethodDeclarationParenthesis,
CSharpVSResources
.Insert_space_within_parameter_list_parentheses, options, updaterService);
50
yield return Setting.Create(CSharpFormattingOptions2.SpaceBetweenEmptyMethodDeclarationParentheses,
CSharpVSResources
.Insert_space_within_empty_parameter_list_parentheses, options, updaterService);
51
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterMethodCallName,
CSharpVSResources
.Insert_space_between_called_method_name_and_its_opening_parenthesis, options, updaterService);
52
yield return Setting.Create(CSharpFormattingOptions2.SpaceWithinMethodCallParentheses,
CSharpVSResources
.Insert_space_within_argument_list_parentheses, options, updaterService);
53
yield return Setting.Create(CSharpFormattingOptions2.SpaceBetweenEmptyMethodCallParentheses,
CSharpVSResources
.Insert_space_within_empty_argument_list_parentheses, options, updaterService);
55
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword,
CSharpVSResources
.Insert_space_after_keywords_in_control_flow_statements, options, updaterService);
58
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.Expressions,
CSharpVSResources
.Insert_space_within_parentheses_of_expressions, spaceBetweenParenthesesValue, s_spaceBetweenParenthesesConversions, options, updaterService);
59
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.TypeCasts,
CSharpVSResources
.Insert_space_within_parentheses_of_type_casts, spaceBetweenParenthesesValue, s_spaceBetweenParenthesesConversions, options, updaterService);
60
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.ControlFlowStatements,
CSharpVSResources
.Insert_spaces_within_parentheses_of_control_flow_statements, spaceBetweenParenthesesValue, s_spaceBetweenParenthesesConversions, options, updaterService);
62
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterCast,
CSharpVSResources
.Insert_space_after_cast, options, updaterService);
63
yield return Setting.Create(CSharpFormattingOptions2.SpacesIgnoreAroundVariableDeclaration,
CSharpVSResources
.Ignore_spaces_in_declaration_statements, options, updaterService);
65
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket,
CSharpVSResources
.Insert_space_before_open_square_bracket, options, updaterService);
66
yield return Setting.Create(CSharpFormattingOptions2.SpaceBetweenEmptySquareBrackets,
CSharpVSResources
.Insert_space_within_empty_square_brackets, options, updaterService);
67
yield return Setting.Create(CSharpFormattingOptions2.SpaceWithinSquareBrackets,
CSharpVSResources
.Insert_spaces_within_square_brackets, options, updaterService);
69
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterColonInBaseTypeDeclaration,
CSharpVSResources
.Insert_space_after_colon_for_base_or_interface_in_type_declaration, options, updaterService);
70
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterComma,
CSharpVSResources
.Insert_space_after_comma, options, updaterService);
71
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterDot,
CSharpVSResources
.Insert_space_after_dot, options, updaterService);
72
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterSemicolonsInForStatement,
CSharpVSResources
.Insert_space_after_semicolon_in_for_statement, options, updaterService);
73
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeColonInBaseTypeDeclaration,
CSharpVSResources
.Insert_space_before_colon_for_base_or_interface_in_type_declaration, options, updaterService);
74
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeComma,
CSharpVSResources
.Insert_space_before_comma, options, updaterService);
75
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeDot,
CSharpVSResources
.Insert_space_before_dot, options, updaterService);
76
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeSemicolonsInForStatement,
CSharpVSResources
.Insert_space_before_semicolon_in_for_statement, options, updaterService);
78
yield return Setting.Create(CSharpFormattingOptions2.SpacingAroundBinaryOperator,
CSharpVSResources
.Set_spacing_for_operators, options, updaterService);
84
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Types,
CSharpVSResources
.Place_open_brace_on_new_line_for_types, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
85
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Methods,
CSharpVSResources
.Place_open_brace_on_new_line_for_methods_local_functions, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
86
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Properties,
CSharpVSResources
.Place_open_brace_on_new_line_for_properties_indexers_and_events, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
87
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Accessors,
CSharpVSResources
.Place_open_brace_on_new_line_for_property_indexer_and_event_accessors, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
88
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.AnonymousMethods,
CSharpVSResources
.Place_open_brace_on_new_line_for_anonymous_methods, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
89
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.ControlBlocks,
CSharpVSResources
.Place_open_brace_on_new_line_for_control_blocks, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
90
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.AnonymousTypes,
CSharpVSResources
.Place_open_brace_on_new_line_for_anonymous_types, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
91
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers,
CSharpVSResources
.Place_open_brace_on_new_line_for_object_collection_array_and_with_initializers, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
92
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.LambdaExpressionBody,
CSharpVSResources
.Place_open_brace_on_new_line_for_lambda_expression, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
94
yield return Setting.Create(CSharpFormattingOptions2.NewLineForElse,
CSharpVSResources
.Place_else_on_new_line, options, updaterService);
95
yield return Setting.Create(CSharpFormattingOptions2.NewLineForCatch,
CSharpVSResources
.Place_catch_on_new_line, options, updaterService);
96
yield return Setting.Create(CSharpFormattingOptions2.NewLineForFinally,
CSharpVSResources
.Place_finally_on_new_line, options, updaterService);
97
yield return Setting.Create(CSharpFormattingOptions2.NewLineForMembersInObjectInit,
CSharpVSResources
.Place_members_in_object_initializers_on_new_line, options, updaterService);
98
yield return Setting.Create(CSharpFormattingOptions2.NewLineForMembersInAnonymousTypes,
CSharpVSResources
.Place_members_in_anonymous_types_on_new_line, options, updaterService);
99
yield return Setting.Create(CSharpFormattingOptions2.NewLineForClausesInQuery,
CSharpVSResources
.Place_query_expression_clauses_on_new_line, options, updaterService);
104
yield return Setting.Create(CSharpFormattingOptions2.IndentBlock,
CSharpVSResources
.Indent_block_contents, options, updaterService);
105
yield return Setting.Create(CSharpFormattingOptions2.IndentBraces,
CSharpVSResources
.Indent_open_and_close_braces, options, updaterService);
106
yield return Setting.Create(CSharpFormattingOptions2.IndentSwitchCaseSection,
CSharpVSResources
.Indent_case_contents, options, updaterService);
107
yield return Setting.Create(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock,
CSharpVSResources
.Indent_case_contents_when_block, options, updaterService);
108
yield return Setting.Create(CSharpFormattingOptions2.IndentSwitchSection,
CSharpVSResources
.Indent_case_labels, options, updaterService);
109
yield return Setting.Create(CSharpFormattingOptions2.LabelPositioning,
CSharpVSResources
.Label_Indentation, options, updaterService);
114
yield return Setting.Create(CSharpFormattingOptions2.WrappingPreserveSingleLine,
CSharpVSResources
.Leave_block_on_single_line, options, updaterService);
115
yield return Setting.Create(CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine,
CSharpVSResources
.Leave_statements_and_member_declarations_on_the_same_line, options, updaterService);
EditorConfigSettings\LabelPositionOptionsViewModel.cs (3)
60
yield return (
CSharpVSResources
.Place_goto_labels_in_leftmost_column, LabelPositionOptions.LeftMost);
61
yield return (
CSharpVSResources
.Indent_labels_normally, LabelPositionOptions.NoIndent);
62
yield return (
CSharpVSResources
.Place_goto_labels_one_indent_less_than_current, LabelPositionOptions.OneLess);
Interactive\CSharpVsInteractiveWindowProvider.cs (1)
56
protected override string Title =>
CSharpVSResources
.CSharp_Interactive;
Interactive\ResetInteractiveWindowFromProjectCommand.cs (1)
72
await resetInteractive.ExecuteAsync(vsInteractiveWindow.InteractiveWindow,
CSharpVSResources
.CSharp_Interactive).ConfigureAwait(true);
LanguageService\CSharpLanguageService.cs (1)
57
return
CSharpVSResources
.CSharp;
Options\AdvancedOptionPageStrings.cs (15)
94
=>
CSharpVSResources
.Show_hints_for_new_expressions;
139
=>
CSharpVSResources
.Split_string_literals_on_enter;
160
=>
CSharpVSResources
.Enter_outlining_mode_when_files_open;
187
=>
CSharpVSResources
.Generate_XML_documentation_comments_for;
196
=>
CSharpVSResources
.Insert_slash_slash_at_the_start_of_new_lines_when_writing_slash_slash_comments;
199
=>
CSharpVSResources
.Insert_at_the_start_of_new_lines_when_writing_comments;
229
=>
CSharpVSResources
.Collapse_usings_on_file_open;
268
=>
CSharpVSResources
.Fade_out_unused_usings;
280
=>
CSharpVSResources
.Place_System_directives_first_when_sorting_usings;
283
=>
CSharpVSResources
.Separate_using_directive_groups;
286
=>
CSharpVSResources
.Using_Directives;
289
=>
CSharpVSResources
.Suggest_usings_for_types_in_dotnet_framework_assemblies;
292
=>
CSharpVSResources
.Suggest_usings_for_types_in_NuGet_packages;
295
=>
CSharpVSResources
.Add_missing_using_directives_on_paste;
298
=>
CSharpVSResources
.Report_invalid_placeholders_in_string_dot_format_calls;
Options\Formatting\FormattingGeneralOptionPageStrings.cs (1)
11
public static string General =>
CSharpVSResources
.General;
Options\Formatting\FormattingOptionPageControl.xaml.cs (5)
29
FormatWhenTypingCheckBox.Content =
CSharpVSResources
.Automatically_format_when_typing;
30
FormatOnSemicolonCheckBox.Content =
CSharpVSResources
.Automatically_format_statement_on_semicolon;
31
FormatOnCloseBraceCheckBox.Content =
CSharpVSResources
.Automatically_format_block_on_close_brace;
32
FormatOnReturnCheckBox.Content =
CSharpVSResources
.Automatically_format_on_return;
33
FormatOnPasteCheckBox.Content =
CSharpVSResources
.Automatically_format_on_paste;
Options\Formatting\IndentationViewModel.cs (9)
86
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentBlock,
CSharpVSResources
.Indent_block_contents, BlockContentPreview, this, optionStore));
87
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentBraces,
CSharpVSResources
.Indent_open_and_close_braces, IndentBracePreview, this, optionStore));
88
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentSwitchCaseSection,
CSharpVSResources
.Indent_case_contents, SwitchCasePreview, this, optionStore));
89
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock,
CSharpVSResources
.Indent_case_contents_when_block, SwitchCaseWhenBlockPreview, this, optionStore));
90
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentSwitchSection,
CSharpVSResources
.Indent_case_labels, SwitchCasePreview, this, optionStore));
92
Items.Add(new TextBlock() { Text =
CSharpVSResources
.Label_Indentation });
94
Items.Add(new RadioButtonViewModel<LabelPositionOptionsInternal>(
CSharpVSResources
.Place_goto_labels_in_leftmost_column, GotoLabelPreview, "goto", LabelPositionOptionsInternal.LeftMost, CSharpFormattingOptions2.LabelPositioning, this, optionStore));
95
Items.Add(new RadioButtonViewModel<LabelPositionOptionsInternal>(
CSharpVSResources
.Indent_labels_normally, GotoLabelPreview, "goto", LabelPositionOptionsInternal.NoIndent, CSharpFormattingOptions2.LabelPositioning, this, optionStore));
96
Items.Add(new RadioButtonViewModel<LabelPositionOptionsInternal>(
CSharpVSResources
.Place_goto_labels_one_indent_less_than_current, GotoLabelPreview, "goto", LabelPositionOptionsInternal.OneLess, CSharpFormattingOptions2.LabelPositioning, this, optionStore));
Options\Formatting\NewLinesViewModel.cs (18)
233
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.New_line_options_for_braces });
236
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Types,
CSharpVSResources
.Place_open_brace_on_new_line_for_types, s_previewText, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
237
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Methods,
CSharpVSResources
.Place_open_brace_on_new_line_for_methods_local_functions, s_methodPreview, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
238
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Properties,
CSharpVSResources
.Place_open_brace_on_new_line_for_properties_indexers_and_events, s_propertyPreview, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
239
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Accessors,
CSharpVSResources
.Place_open_brace_on_new_line_for_property_indexer_and_event_accessors, s_propertyPreview, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
240
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.AnonymousMethods,
CSharpVSResources
.Place_open_brace_on_new_line_for_anonymous_methods, s_anonymousMethodPreview, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
241
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.ControlBlocks,
CSharpVSResources
.Place_open_brace_on_new_line_for_control_blocks, s_forBlockPreview, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
242
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.AnonymousTypes,
CSharpVSResources
.Place_open_brace_on_new_line_for_anonymous_types, s_anonymousTypePreview, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
243
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers,
CSharpVSResources
.Place_open_brace_on_new_line_for_object_collection_array_and_with_initializers, s_InitializerPreviewTrue, s_InitializerPreviewFalse, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
244
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.LambdaExpressionBody,
CSharpVSResources
.Place_open_brace_on_new_line_for_lambda_expression, s_lambdaPreview, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));
246
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.New_line_options_for_keywords });
248
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForElse,
CSharpVSResources
.Place_else_on_new_line, s_ifElsePreview, this, optionStore));
249
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForCatch,
CSharpVSResources
.Place_catch_on_new_line, s_tryCatchFinallyPreview, this, optionStore));
250
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForFinally,
CSharpVSResources
.Place_finally_on_new_line, s_tryCatchFinallyPreview, this, optionStore));
252
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.New_line_options_for_expressions });
254
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForMembersInObjectInit,
CSharpVSResources
.Place_members_in_object_initializers_on_new_line, s_objectInitializerPreview, this, optionStore));
255
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForMembersInAnonymousTypes,
CSharpVSResources
.Place_members_in_anonymous_types_on_new_line, s_anonymousTypePreview, this, optionStore));
256
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForClausesInQuery,
CSharpVSResources
.Place_query_expression_clauses_on_new_line, s_queryExpressionPreview, this, optionStore));
Options\Formatting\SpacingViewModel.cs (32)
126
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_method_declarations });
128
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpacingAfterMethodDeclarationName,
CSharpVSResources
.Insert_space_between_method_name_and_its_opening_parenthesis, s_methodPreview, this, optionStore));
129
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceWithinMethodDeclarationParenthesis,
CSharpVSResources
.Insert_space_within_parameter_list_parentheses, s_methodPreview, this, optionStore));
130
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBetweenEmptyMethodDeclarationParentheses,
CSharpVSResources
.Insert_space_within_empty_parameter_list_parentheses, s_methodPreview, this, optionStore));
132
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_method_calls });
134
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterMethodCallName,
CSharpVSResources
.Insert_space_between_called_method_name_and_its_opening_parenthesis, s_methodPreview, this, optionStore));
135
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceWithinMethodCallParentheses,
CSharpVSResources
.Insert_space_within_argument_list_parentheses, s_methodPreview, this, optionStore));
136
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBetweenEmptyMethodCallParentheses,
CSharpVSResources
.Insert_space_within_empty_argument_list_parentheses, s_methodPreview, this, optionStore));
138
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_other_spacing_options });
140
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword,
CSharpVSResources
.Insert_space_after_keywords_in_control_flow_statements, s_forDelimiterPreview, this, optionStore));
143
Items.Add(new CheckBoxEnumFlagsOptionViewModel<SpacePlacementWithinParentheses>(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.Expressions,
CSharpVSResources
.Insert_space_within_parentheses_of_expressions, s_expressionPreview, this, optionStore, spaceBetweenParenthesesStorage, s_spaceBetweenParenthesesConversions));
144
Items.Add(new CheckBoxEnumFlagsOptionViewModel<SpacePlacementWithinParentheses>(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.TypeCasts,
CSharpVSResources
.Insert_space_within_parentheses_of_type_casts, s_castPreview, this, optionStore, spaceBetweenParenthesesStorage, s_spaceBetweenParenthesesConversions));
145
Items.Add(new CheckBoxEnumFlagsOptionViewModel<SpacePlacementWithinParentheses>(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.ControlFlowStatements,
CSharpVSResources
.Insert_spaces_within_parentheses_of_control_flow_statements, s_forDelimiterPreview, this, optionStore, spaceBetweenParenthesesStorage, s_spaceBetweenParenthesesConversions));
147
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterCast,
CSharpVSResources
.Insert_space_after_cast, s_castPreview, this, optionStore));
148
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpacesIgnoreAroundVariableDeclaration,
CSharpVSResources
.Ignore_spaces_in_declaration_statements, s_declarationSpacingPreview, this, optionStore));
150
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_brackets });
152
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket,
CSharpVSResources
.Insert_space_before_open_square_bracket, s_bracketPreview, this, optionStore));
153
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBetweenEmptySquareBrackets,
CSharpVSResources
.Insert_space_within_empty_square_brackets, s_bracketPreview, this, optionStore));
154
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceWithinSquareBrackets,
CSharpVSResources
.Insert_spaces_within_square_brackets, s_bracketPreview, this, optionStore));
156
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_delimiters });
158
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterColonInBaseTypeDeclaration,
CSharpVSResources
.Insert_space_after_colon_for_base_or_interface_in_type_declaration, s_baseColonPreview, this, optionStore));
159
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterComma,
CSharpVSResources
.Insert_space_after_comma, s_delimiterPreview, this, optionStore));
160
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterDot,
CSharpVSResources
.Insert_space_after_dot, s_delimiterPreview, this, optionStore));
161
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterSemicolonsInForStatement,
CSharpVSResources
.Insert_space_after_semicolon_in_for_statement, s_forDelimiterPreview, this, optionStore));
162
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeColonInBaseTypeDeclaration,
CSharpVSResources
.Insert_space_before_colon_for_base_or_interface_in_type_declaration, s_baseColonPreview, this, optionStore));
163
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeComma,
CSharpVSResources
.Insert_space_before_comma, s_delimiterPreview, this, optionStore));
164
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeDot,
CSharpVSResources
.Insert_space_before_dot, s_delimiterPreview, this, optionStore));
165
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeSemicolonsInForStatement,
CSharpVSResources
.Insert_space_before_semicolon_in_for_statement, s_forDelimiterPreview, this, optionStore));
167
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_operators });
169
Items.Add(new RadioButtonViewModel<BinaryOperatorSpacingOptionsInternal>(
CSharpVSResources
.Ignore_spaces_around_binary_operators, s_expressionSpacingPreview, "binary", BinaryOperatorSpacingOptionsInternal.Ignore, CSharpFormattingOptions2.SpacingAroundBinaryOperator, this, OptionStore));
170
Items.Add(new RadioButtonViewModel<BinaryOperatorSpacingOptionsInternal>(
CSharpVSResources
.Remove_spaces_before_and_after_binary_operators, s_expressionSpacingPreview, "binary", BinaryOperatorSpacingOptionsInternal.Remove, CSharpFormattingOptions2.SpacingAroundBinaryOperator, this, OptionStore));
171
Items.Add(new RadioButtonViewModel<BinaryOperatorSpacingOptionsInternal>(
CSharpVSResources
.Insert_space_before_and_after_binary_operators, s_expressionSpacingPreview, "binary", BinaryOperatorSpacingOptionsInternal.Single, CSharpFormattingOptions2.SpacingAroundBinaryOperator, this, OptionStore));
Options\Formatting\StyleViewModel.cs (42)
1501
// {{
CSharpVSResources
.Inside_namespace}}
2215
var qualifyGroupTitle =
CSharpVSResources
.this_preferences_colon;
2216
var predefinedTypesGroupTitle =
CSharpVSResources
.predefined_type_preferences_colon;
2217
var varGroupTitle =
CSharpVSResources
.var_preferences_colon;
2218
var nullCheckingGroupTitle =
CSharpVSResources
.null_checking_colon;
2219
var usingsGroupTitle =
CSharpVSResources
.using_preferences_colon;
2223
var patternMatchingPreferencesGroupTitle =
CSharpVSResources
.Pattern_matching_preferences_colon;
2230
new(
CSharpVSResources
.Inside_namespace, isChecked: false),
2236
new(
CSharpVSResources
.Prefer_this, isChecked: true),
2237
new(
CSharpVSResources
.Do_not_prefer_this, isChecked: false),
2248
new(
CSharpVSResources
.Prefer_var, isChecked: true),
2249
new(
CSharpVSResources
.Prefer_explicit_type, isChecked: false),
2252
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.QualifyFieldAccess,
CSharpVSResources
.Qualify_field_access_with_this, s_fieldDeclarationPreviewTrue, s_fieldDeclarationPreviewFalse, this, optionStore, qualifyGroupTitle, qualifyMemberAccessPreferences));
2253
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.QualifyPropertyAccess,
CSharpVSResources
.Qualify_property_access_with_this, s_propertyDeclarationPreviewTrue, s_propertyDeclarationPreviewFalse, this, optionStore, qualifyGroupTitle, qualifyMemberAccessPreferences));
2254
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.QualifyMethodAccess,
CSharpVSResources
.Qualify_method_access_with_this, s_methodDeclarationPreviewTrue, s_methodDeclarationPreviewFalse, this, optionStore, qualifyGroupTitle, qualifyMemberAccessPreferences));
2255
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.QualifyEventAccess,
CSharpVSResources
.Qualify_event_access_with_this, s_eventDeclarationPreviewTrue, s_eventDeclarationPreviewFalse, this, optionStore, qualifyGroupTitle, qualifyMemberAccessPreferences));
2261
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarForBuiltInTypes,
CSharpVSResources
.For_built_in_types, s_varForIntrinsicsPreviewTrue, s_varForIntrinsicsPreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));
2262
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarWhenTypeIsApparent,
CSharpVSResources
.When_variable_type_is_apparent, s_varWhereApparentPreviewTrue, s_varWhereApparentPreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));
2263
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarElsewhere,
CSharpVSResources
.Elsewhere, s_varWherePossiblePreviewTrue, s_varWherePossiblePreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));
2280
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferSwitchExpression,
CSharpVSResources
.Prefer_switch_expression, s_preferSwitchExpression, s_preferSwitchExpression, this, optionStore, expressionPreferencesGroupTitle));
2289
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.ImplicitObjectCreationWhenTypeIsApparent,
CSharpVSResources
.Prefer_implicit_object_creation_when_type_is_apparent, s_preferImplicitObjectCreationWhenTypeIsApparent, s_preferImplicitObjectCreationWhenTypeIsApparent, this, optionStore, expressionPreferencesGroupTitle));
2300
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferPatternMatching,
CSharpVSResources
.Prefer_pattern_matching, s_preferPatternMatching, s_preferPatternMatching, this, optionStore, patternMatchingPreferencesGroupTitle));
2301
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferPatternMatchingOverIsWithCastCheck,
CSharpVSResources
.Prefer_pattern_matching_over_is_with_cast_check, s_preferPatternMatchingOverIsWithCastCheck, s_preferPatternMatchingOverIsWithCastCheck, this, optionStore, patternMatchingPreferencesGroupTitle));
2302
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferPatternMatchingOverAsWithNullCheck,
CSharpVSResources
.Prefer_pattern_matching_over_as_with_null_check, s_preferPatternMatchingOverAsWithNullCheck, s_preferPatternMatchingOverAsWithNullCheck, this, optionStore, patternMatchingPreferencesGroupTitle));
2303
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferNotPattern,
CSharpVSResources
.Prefer_pattern_matching_over_mixed_type_check, s_preferPatternMatchingOverMixedTypeCheck, s_preferPatternMatchingOverMixedTypeCheck, this, optionStore, patternMatchingPreferencesGroupTitle));
2310
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferThrowExpression,
CSharpVSResources
.Prefer_throw_expression, s_preferThrowExpression, s_preferThrowExpression, this, optionStore, nullCheckingGroupTitle));
2311
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferConditionalDelegateCall,
CSharpVSResources
.Prefer_conditional_delegate_call, s_preferConditionalDelegateCall, s_preferConditionalDelegateCall, this, optionStore, nullCheckingGroupTitle));
2319
CSharpCodeStyleOptions.PreferredUsingDirectivePlacement,
CSharpVSResources
.Preferred_using_directive_placement,
2334
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.AllowEmbeddedStatementsOnSameLine,
CSharpVSResources
.Allow_embedded_statements_on_same_line, s_allow_embedded_statements_on_same_line_true, s_allow_embedded_statements_on_same_line_false, this, optionStore, newLinePreferencesGroupTitle));
2335
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.AllowBlankLinesBetweenConsecutiveBraces,
CSharpVSResources
.Allow_blank_lines_between_consecutive_braces, s_allow_blank_line_between_consecutive_braces_true, s_allow_blank_line_between_consecutive_braces_false, this, optionStore, newLinePreferencesGroupTitle));
2337
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.AllowBlankLineAfterColonInConstructorInitializer,
CSharpVSResources
.Allow_blank_line_after_colon_in_constructor_initializer, s_allow_blank_line_after_colon_in_constructor_initializer_true, s_allow_blank_line_after_colon_in_constructor_initializer_false, this, optionStore, newLinePreferencesGroupTitle));
2338
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.AllowBlankLineAfterTokenInConditionalExpression,
CSharpVSResources
.Allow_blank_line_after_token_in_conditional_expression, s_allow_blank_line_after_token_in_conditional_expression_true, s_allow_blank_line_after_token_in_conditional_expression_false, this, optionStore, newLinePreferencesGroupTitle));
2339
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.AllowBlankLineAfterTokenInArrowExpressionClause,
CSharpVSResources
.Allow_blank_line_after_token_in_arrow_expression_clause, s_allow_blank_line_after_token_in_arrow_expression_clause_true, s_allow_blank_line_after_token_in_arrow_expression_clause_false, this, optionStore, newLinePreferencesGroupTitle));
2346
CSharpVSResources
.In_arithmetic_binary_operators,
2352
CSharpVSResources
.In_other_binary_operators,
2358
CSharpVSResources
.In_relational_binary_operators,
2375
new(
CSharpVSResources
.When_on_multiple_lines, isChecked: false),
2392
new(
CSharpVSResources
.Block_scoped, isChecked: false),
2393
new(
CSharpVSResources
.File_scoped, isChecked: false),
2411
new(
CSharpVSResources
.When_possible, isChecked: false),
2412
new(
CSharpVSResources
.When_on_single_line, isChecked: false),
2479
new(
CSharpVSResources
.Discard, isChecked: true),
Options\Formatting\WrappingViewModel.cs (2)
41
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.WrappingPreserveSingleLine,
CSharpVSResources
.Leave_block_on_single_line, s_blockPreview, this, optionStore));
42
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine,
CSharpVSResources
.Leave_statements_and_member_declarations_on_the_same_line, s_declarationPreview, this, optionStore));
SemanticSearch\SemanticSearchToolWindowImpl.cs (4)
162
automationName:
CSharpVSResources
.RunQuery,
164
toolTip:
CSharpVSResources
.RunQueryCommandToolTip);
171
automationName:
CSharpVSResources
.CancelQuery,
173
toolTip:
CSharpVSResources
.CancelQueryCommandToolTip);
Snippets\SnippetCommandHandler.cs (1)
123
bstrPrefixText: surroundWith ?
CSharpVSResources
.Surround_With : ServicesVSResources.Insert_Snippet,
Roslyn.VisualStudio.Next.UnitTests (1)
UnifiedSettings\TestModel\Utilities.cs (1)
48
CSharpLanguageServiceDllName =>
CSharpVSResources
.ResourceManager.GetString(resourcesIdentifier, culture),