256 references to CSharpVSResources
Microsoft.VisualStudio.LanguageServices.CSharp (255)
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 (31)
62
var trueValueDescription =
CSharpVSResources
.Prefer_var;
63
var falseValueDescription =
CSharpVSResources
.Prefer_explicit_type;
65
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.VarForBuiltInTypes,
CSharpVSResources
.For_built_in_types, options, updater, trueValueDescription, falseValueDescription);
66
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.VarWhenTypeIsApparent,
CSharpVSResources
.When_variable_type_is_apparent, options, updater, trueValueDescription, falseValueDescription);
67
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.VarElsewhere,
CSharpVSResources
.Elsewhere, options, updater, trueValueDescription, falseValueDescription);
72
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferredUsingDirectivePlacement,
CSharpVSResources
.Preferred_using_directive_placement, options, updater,
74
valueDescriptions: new[] {
CSharpVSResources
.Inside_namespace,
CSharpVSResources
.Outside_namespace });
79
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferThrowExpression,
CSharpVSResources
.Prefer_throw_expression, options, updater);
80
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferConditionalDelegateCall,
CSharpVSResources
.Prefer_conditional_delegate_call, options, updater);
81
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferNullCheckOverTypeCheck,
CSharpVSResources
.Prefer_null_check_over_type_check, options, updater);
96
valueDescriptions: new[] { ServicesVSResources.Yes, ServicesVSResources.No,
CSharpVSResources
.When_on_multiple_lines });
100
valueDescriptions: new[] {
CSharpVSResources
.Block_scoped,
CSharpVSResources
.File_scoped });
108
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferSwitchExpression,
CSharpVSResources
.Prefer_switch_expression, options, updater);
113
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.ImplicitObjectCreationWhenTypeIsApparent,
CSharpVSResources
.Prefer_implicit_object_creation_when_type_is_apparent, options, updater);
120
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferPatternMatching,
CSharpVSResources
.Prefer_pattern_matching, options, updater);
121
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferPatternMatchingOverIsWithCastCheck,
CSharpVSResources
.Prefer_pattern_matching_over_is_with_cast_check, options, updater);
122
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferPatternMatchingOverAsWithNullCheck,
CSharpVSResources
.Prefer_pattern_matching_over_as_with_null_check, options, updater);
123
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferNotPattern,
CSharpVSResources
.Prefer_pattern_matching_over_mixed_type_check, options, updater);
124
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.PreferExtendedPropertyPattern,
CSharpVSResources
.Prefer_extended_property_pattern, options, updater);
136
var valueDescriptions = new[] {
CSharpVSResources
.Never,
CSharpVSResources
.When_possible,
CSharpVSResources
.When_on_single_line };
151
var valueDescriptions = new[] {
CSharpVSResources
.Unused_local,
CSharpVSResources
.Discard };
156
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowEmbeddedStatementsOnSameLine,
CSharpVSResources
.Allow_embedded_statements_on_same_line, options, updater);
157
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLinesBetweenConsecutiveBraces,
CSharpVSResources
.Allow_blank_lines_between_consecutive_braces, options, updater);
158
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLineAfterColonInConstructorInitializer,
CSharpVSResources
.Allow_blank_line_after_colon_in_constructor_initializer, options, updater);
159
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLineAfterTokenInConditionalExpression,
CSharpVSResources
.Allow_blank_line_after_token_in_conditional_expression, options, updater);
160
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLineAfterTokenInArrowExpressionClause,
CSharpVSResources
.Allow_blank_line_after_token_in_arrow_expression_clause, options, updater);
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProvider.cs (47)
46
yield return Setting.Create(CSharpFormattingOptions2.SpacingAfterMethodDeclarationName,
CSharpVSResources
.Insert_space_between_method_name_and_its_opening_parenthesis, options, updaterService);
47
yield return Setting.Create(CSharpFormattingOptions2.SpaceWithinMethodDeclarationParenthesis,
CSharpVSResources
.Insert_space_within_parameter_list_parentheses, options, updaterService);
48
yield return Setting.Create(CSharpFormattingOptions2.SpaceBetweenEmptyMethodDeclarationParentheses,
CSharpVSResources
.Insert_space_within_empty_parameter_list_parentheses, options, updaterService);
49
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterMethodCallName,
CSharpVSResources
.Insert_space_between_called_method_name_and_its_opening_parenthesis, options, updaterService);
50
yield return Setting.Create(CSharpFormattingOptions2.SpaceWithinMethodCallParentheses,
CSharpVSResources
.Insert_space_within_argument_list_parentheses, options, updaterService);
51
yield return Setting.Create(CSharpFormattingOptions2.SpaceBetweenEmptyMethodCallParentheses,
CSharpVSResources
.Insert_space_within_empty_argument_list_parentheses, options, updaterService);
53
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword,
CSharpVSResources
.Insert_space_after_keywords_in_control_flow_statements, options, updaterService);
56
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.Expressions,
CSharpVSResources
.Insert_space_within_parentheses_of_expressions, spaceBetweenParenthesesValue, s_spaceBetweenParenthesesConversions, options, updaterService);
57
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.TypeCasts,
CSharpVSResources
.Insert_space_within_parentheses_of_type_casts, spaceBetweenParenthesesValue, s_spaceBetweenParenthesesConversions, options, updaterService);
58
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.ControlFlowStatements,
CSharpVSResources
.Insert_spaces_within_parentheses_of_control_flow_statements, spaceBetweenParenthesesValue, s_spaceBetweenParenthesesConversions, options, updaterService);
60
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterCast,
CSharpVSResources
.Insert_space_after_cast, options, updaterService);
61
yield return Setting.Create(CSharpFormattingOptions2.SpacesIgnoreAroundVariableDeclaration,
CSharpVSResources
.Ignore_spaces_in_declaration_statements, options, updaterService);
63
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket,
CSharpVSResources
.Insert_space_before_open_square_bracket, options, updaterService);
64
yield return Setting.Create(CSharpFormattingOptions2.SpaceBetweenEmptySquareBrackets,
CSharpVSResources
.Insert_space_within_empty_square_brackets, options, updaterService);
65
yield return Setting.Create(CSharpFormattingOptions2.SpaceWithinSquareBrackets,
CSharpVSResources
.Insert_spaces_within_square_brackets, options, updaterService);
67
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterColonInBaseTypeDeclaration,
CSharpVSResources
.Insert_space_after_colon_for_base_or_interface_in_type_declaration, options, updaterService);
68
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterComma,
CSharpVSResources
.Insert_space_after_comma, options, updaterService);
69
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterDot,
CSharpVSResources
.Insert_space_after_dot, options, updaterService);
70
yield return Setting.Create(CSharpFormattingOptions2.SpaceAfterSemicolonsInForStatement,
CSharpVSResources
.Insert_space_after_semicolon_in_for_statement, options, updaterService);
71
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeColonInBaseTypeDeclaration,
CSharpVSResources
.Insert_space_before_colon_for_base_or_interface_in_type_declaration, options, updaterService);
72
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeComma,
CSharpVSResources
.Insert_space_before_comma, options, updaterService);
73
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeDot,
CSharpVSResources
.Insert_space_before_dot, options, updaterService);
74
yield return Setting.Create(CSharpFormattingOptions2.SpaceBeforeSemicolonsInForStatement,
CSharpVSResources
.Insert_space_before_semicolon_in_for_statement, options, updaterService);
76
yield return Setting.Create(CSharpFormattingOptions2.SpacingAroundBinaryOperator,
CSharpVSResources
.Set_spacing_for_operators, options, updaterService);
82
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.Types,
CSharpVSResources
.Place_open_brace_on_new_line_for_types, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
83
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);
84
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);
85
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);
86
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.AnonymousMethods,
CSharpVSResources
.Place_open_brace_on_new_line_for_anonymous_methods, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
87
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.ControlBlocks,
CSharpVSResources
.Place_open_brace_on_new_line_for_control_blocks, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
88
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.AnonymousTypes,
CSharpVSResources
.Place_open_brace_on_new_line_for_anonymous_types, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
89
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);
90
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.LambdaExpressionBody,
CSharpVSResources
.Place_open_brace_on_new_line_for_lambda_expression, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
92
yield return Setting.Create(CSharpFormattingOptions2.NewLineForElse,
CSharpVSResources
.Place_else_on_new_line, options, updaterService);
93
yield return Setting.Create(CSharpFormattingOptions2.NewLineForCatch,
CSharpVSResources
.Place_catch_on_new_line, options, updaterService);
94
yield return Setting.Create(CSharpFormattingOptions2.NewLineForFinally,
CSharpVSResources
.Place_finally_on_new_line, options, updaterService);
95
yield return Setting.Create(CSharpFormattingOptions2.NewLineForMembersInObjectInit,
CSharpVSResources
.Place_members_in_object_initializers_on_new_line, options, updaterService);
96
yield return Setting.Create(CSharpFormattingOptions2.NewLineForMembersInAnonymousTypes,
CSharpVSResources
.Place_members_in_anonymous_types_on_new_line, options, updaterService);
97
yield return Setting.Create(CSharpFormattingOptions2.NewLineForClausesInQuery,
CSharpVSResources
.Place_query_expression_clauses_on_new_line, options, updaterService);
102
yield return Setting.Create(CSharpFormattingOptions2.IndentBlock,
CSharpVSResources
.Indent_block_contents, options, updaterService);
103
yield return Setting.Create(CSharpFormattingOptions2.IndentBraces,
CSharpVSResources
.Indent_open_and_close_braces, options, updaterService);
104
yield return Setting.Create(CSharpFormattingOptions2.IndentSwitchCaseSection,
CSharpVSResources
.Indent_case_contents, options, updaterService);
105
yield return Setting.Create(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock,
CSharpVSResources
.Indent_case_contents_when_block, options, updaterService);
106
yield return Setting.Create(CSharpFormattingOptions2.IndentSwitchSection,
CSharpVSResources
.Indent_case_labels, options, updaterService);
107
yield return Setting.Create(CSharpFormattingOptions2.LabelPositioning,
CSharpVSResources
.Label_Indentation, options, updaterService);
112
yield return Setting.Create(CSharpFormattingOptions2.WrappingPreserveSingleLine,
CSharpVSResources
.Leave_block_on_single_line, options, updaterService);
113
yield return Setting.Create(CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine,
CSharpVSResources
.Leave_statements_and_member_declarations_on_the_same_line, options, updaterService);
EditorConfigSettings\LabelPositionOptionsViewModel.cs (3)
61
yield return (
CSharpVSResources
.Place_goto_labels_in_leftmost_column, LabelPositionOptions.LeftMost);
62
yield return (
CSharpVSResources
.Indent_labels_normally, LabelPositionOptions.NoIndent);
63
yield return (
CSharpVSResources
.Place_goto_labels_one_indent_less_than_current, LabelPositionOptions.OneLess);
LanguageService\CSharpLanguageService.cs (1)
62
return
CSharpVSResources
.CSharp;
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
)));
Options\AdvancedOptionPageStrings.cs (29)
106
=>
CSharpVSResources
.Show_hints_for_new_expressions;
145
=>
CSharpVSResources
.Show_preview_for_rename_tracking;
148
=>
CSharpVSResources
.Split_string_literals_on_enter;
151
=>
CSharpVSResources
.Show_procedure_line_separators;
157
=>
CSharpVSResources
.Don_t_put_ref_or_out_on_custom_struct;
160
=>
CSharpVSResources
.Editor_Help;
163
=>
CSharpVSResources
.Highlight_related_keywords_under_cursor;
166
=>
CSharpVSResources
.Highlight_references_to_symbol_under_cursor;
169
=>
CSharpVSResources
.Enter_outlining_mode_when_files_open;
172
=>
CSharpVSResources
.Extract_Method;
199
=>
CSharpVSResources
.Generate_XML_documentation_comments_for;
202
=>
CSharpVSResources
.Insert_slash_slash_at_the_start_of_new_lines_when_writing_slash_slash_comments;
205
=>
CSharpVSResources
.Insert_at_the_start_of_new_lines_when_writing_comments;
208
=>
CSharpVSResources
.Show_remarks_in_Quick_Info;
211
=>
CSharpVSResources
.Highlighting;
214
=>
CSharpVSResources
.Optimize_for_solution_size;
217
=>
CSharpVSResources
.Large;
220
=>
CSharpVSResources
.Regular;
223
=>
CSharpVSResources
.Small;
238
=>
CSharpVSResources
.Collapse_usings_on_file_open;
271
=>
CSharpVSResources
.Fade_out_unused_usings;
277
=>
CSharpVSResources
.Performance;
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\CodeStylePage.cs (2)
37
builder.Add((
CSharpVSResources
.CSharp_Coding_Conventions, CSharpCodeStyleOptions.AllOptions));
38
builder.Add((
CSharpVSResources
.CSharp_Formatting_Rules, CSharpFormattingOptions2.AllOptions));
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)
82
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentBlock,
CSharpVSResources
.Indent_block_contents, BlockContentPreview, this, optionStore));
83
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentBraces,
CSharpVSResources
.Indent_open_and_close_braces, IndentBracePreview, this, optionStore));
84
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentSwitchCaseSection,
CSharpVSResources
.Indent_case_contents, SwitchCasePreview, this, optionStore));
85
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock,
CSharpVSResources
.Indent_case_contents_when_block, SwitchCaseWhenBlockPreview, this, optionStore));
86
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.IndentSwitchSection,
CSharpVSResources
.Indent_case_labels, SwitchCasePreview, this, optionStore));
88
Items.Add(new TextBlock() { Text =
CSharpVSResources
.Label_Indentation });
90
Items.Add(new RadioButtonViewModel<LabelPositionOptions>(
CSharpVSResources
.Place_goto_labels_in_leftmost_column, GotoLabelPreview, "goto", LabelPositionOptions.LeftMost, CSharpFormattingOptions2.LabelPositioning, this, optionStore));
91
Items.Add(new RadioButtonViewModel<LabelPositionOptions>(
CSharpVSResources
.Indent_labels_normally, GotoLabelPreview, "goto", LabelPositionOptions.NoIndent, CSharpFormattingOptions2.LabelPositioning, this, optionStore));
92
Items.Add(new RadioButtonViewModel<LabelPositionOptions>(
CSharpVSResources
.Place_goto_labels_one_indent_less_than_current, GotoLabelPreview, "goto", LabelPositionOptions.OneLess, CSharpFormattingOptions2.LabelPositioning, this, optionStore));
Options\Formatting\NewLinesViewModel.cs (18)
208
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.New_line_options_for_braces });
211
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));
212
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));
213
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));
214
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));
215
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));
216
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));
217
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));
218
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));
219
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));
221
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.New_line_options_for_keywords });
223
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForElse,
CSharpVSResources
.Place_else_on_new_line, s_ifElsePreview, this, optionStore));
224
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForCatch,
CSharpVSResources
.Place_catch_on_new_line, s_tryCatchFinallyPreview, this, optionStore));
225
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForFinally,
CSharpVSResources
.Place_finally_on_new_line, s_tryCatchFinallyPreview, this, optionStore));
227
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.New_line_options_for_expressions });
229
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForMembersInObjectInit,
CSharpVSResources
.Place_members_in_object_initializers_on_new_line, s_objectInitializerPreview, this, optionStore));
230
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForMembersInAnonymousTypes,
CSharpVSResources
.Place_members_in_anonymous_types_on_new_line, s_anonymousTypePreview, this, optionStore));
231
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.NewLineForClausesInQuery,
CSharpVSResources
.Place_query_expression_clauses_on_new_line, s_queryExpressionPreview, this, optionStore));
Options\Formatting\SpacingViewModel.cs (32)
111
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_method_declarations });
113
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpacingAfterMethodDeclarationName,
CSharpVSResources
.Insert_space_between_method_name_and_its_opening_parenthesis, s_methodPreview, this, optionStore));
114
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceWithinMethodDeclarationParenthesis,
CSharpVSResources
.Insert_space_within_parameter_list_parentheses, s_methodPreview, this, optionStore));
115
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBetweenEmptyMethodDeclarationParentheses,
CSharpVSResources
.Insert_space_within_empty_parameter_list_parentheses, s_methodPreview, this, optionStore));
117
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_method_calls });
119
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterMethodCallName,
CSharpVSResources
.Insert_space_between_called_method_name_and_its_opening_parenthesis, s_methodPreview, this, optionStore));
120
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceWithinMethodCallParentheses,
CSharpVSResources
.Insert_space_within_argument_list_parentheses, s_methodPreview, this, optionStore));
121
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBetweenEmptyMethodCallParentheses,
CSharpVSResources
.Insert_space_within_empty_argument_list_parentheses, s_methodPreview, this, optionStore));
123
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_other_spacing_options });
125
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword,
CSharpVSResources
.Insert_space_after_keywords_in_control_flow_statements, s_forDelimiterPreview, this, optionStore));
128
Items.Add(new CheckBoxEnumFlagsOptionViewModel<SpacePlacementWithinParentheses>(CSharpFormattingOptions2.SpaceBetweenParentheses, (int)SpacePlacementWithinParentheses.Expressions,
CSharpVSResources
.Insert_space_within_parentheses_of_expressions, s_expressionPreview, this, optionStore, spaceBetweenParenthesesStorage, s_spaceBetweenParenthesesConversions));
129
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));
130
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));
132
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterCast,
CSharpVSResources
.Insert_space_after_cast, s_castPreview, this, optionStore));
133
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpacesIgnoreAroundVariableDeclaration,
CSharpVSResources
.Ignore_spaces_in_declaration_statements, s_declarationSpacingPreview, this, optionStore));
135
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_brackets });
137
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket,
CSharpVSResources
.Insert_space_before_open_square_bracket, s_bracketPreview, this, optionStore));
138
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBetweenEmptySquareBrackets,
CSharpVSResources
.Insert_space_within_empty_square_brackets, s_bracketPreview, this, optionStore));
139
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceWithinSquareBrackets,
CSharpVSResources
.Insert_spaces_within_square_brackets, s_bracketPreview, this, optionStore));
141
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_delimiters });
143
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterColonInBaseTypeDeclaration,
CSharpVSResources
.Insert_space_after_colon_for_base_or_interface_in_type_declaration, s_baseColonPreview, this, optionStore));
144
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterComma,
CSharpVSResources
.Insert_space_after_comma, s_delimiterPreview, this, optionStore));
145
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterDot,
CSharpVSResources
.Insert_space_after_dot, s_delimiterPreview, this, optionStore));
146
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceAfterSemicolonsInForStatement,
CSharpVSResources
.Insert_space_after_semicolon_in_for_statement, s_forDelimiterPreview, this, optionStore));
147
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeColonInBaseTypeDeclaration,
CSharpVSResources
.Insert_space_before_colon_for_base_or_interface_in_type_declaration, s_baseColonPreview, this, optionStore));
148
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeComma,
CSharpVSResources
.Insert_space_before_comma, s_delimiterPreview, this, optionStore));
149
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeDot,
CSharpVSResources
.Insert_space_before_dot, s_delimiterPreview, this, optionStore));
150
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.SpaceBeforeSemicolonsInForStatement,
CSharpVSResources
.Insert_space_before_semicolon_in_for_statement, s_forDelimiterPreview, this, optionStore));
152
Items.Add(new HeaderItemViewModel() { Header =
CSharpVSResources
.Set_spacing_for_operators });
154
Items.Add(new RadioButtonViewModel<BinaryOperatorSpacingOptions>(
CSharpVSResources
.Ignore_spaces_around_binary_operators, s_expressionSpacingPreview, "binary", BinaryOperatorSpacingOptions.Ignore, CSharpFormattingOptions2.SpacingAroundBinaryOperator, this, OptionStore));
155
Items.Add(new RadioButtonViewModel<BinaryOperatorSpacingOptions>(
CSharpVSResources
.Remove_spaces_before_and_after_binary_operators, s_expressionSpacingPreview, "binary", BinaryOperatorSpacingOptions.Remove, CSharpFormattingOptions2.SpacingAroundBinaryOperator, this, OptionStore));
156
Items.Add(new RadioButtonViewModel<BinaryOperatorSpacingOptions>(
CSharpVSResources
.Insert_space_before_and_after_binary_operators, s_expressionSpacingPreview, "binary", BinaryOperatorSpacingOptions.Single, CSharpFormattingOptions2.SpacingAroundBinaryOperator, this, OptionStore));
Options\Formatting\StyleViewModel.cs (48)
1482
// {
CSharpVSResources
.Inside_namespace}
1492
// {
CSharpVSResources
.Outside_namespace}
2183
var qualifyGroupTitle =
CSharpVSResources
.this_preferences_colon;
2184
var predefinedTypesGroupTitle =
CSharpVSResources
.predefined_type_preferences_colon;
2185
var varGroupTitle =
CSharpVSResources
.var_preferences_colon;
2186
var nullCheckingGroupTitle =
CSharpVSResources
.null_checking_colon;
2187
var usingsGroupTitle =
CSharpVSResources
.using_preferences_colon;
2191
var patternMatchingPreferencesGroupTitle =
CSharpVSResources
.Pattern_matching_preferences_colon;
2198
new CodeStylePreference(
CSharpVSResources
.Inside_namespace, isChecked: false),
2199
new CodeStylePreference(
CSharpVSResources
.Outside_namespace, isChecked: false),
2204
new CodeStylePreference(
CSharpVSResources
.Prefer_this, isChecked: true),
2205
new CodeStylePreference(
CSharpVSResources
.Do_not_prefer_this, isChecked: false),
2216
new CodeStylePreference(
CSharpVSResources
.Prefer_var, isChecked: true),
2217
new CodeStylePreference(
CSharpVSResources
.Prefer_explicit_type, isChecked: false),
2220
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.QualifyFieldAccess,
CSharpVSResources
.Qualify_field_access_with_this, s_fieldDeclarationPreviewTrue, s_fieldDeclarationPreviewFalse, this, optionStore, qualifyGroupTitle, qualifyMemberAccessPreferences));
2221
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.QualifyPropertyAccess,
CSharpVSResources
.Qualify_property_access_with_this, s_propertyDeclarationPreviewTrue, s_propertyDeclarationPreviewFalse, this, optionStore, qualifyGroupTitle, qualifyMemberAccessPreferences));
2222
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.QualifyMethodAccess,
CSharpVSResources
.Qualify_method_access_with_this, s_methodDeclarationPreviewTrue, s_methodDeclarationPreviewFalse, this, optionStore, qualifyGroupTitle, qualifyMemberAccessPreferences));
2223
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.QualifyEventAccess,
CSharpVSResources
.Qualify_event_access_with_this, s_eventDeclarationPreviewTrue, s_eventDeclarationPreviewFalse, this, optionStore, qualifyGroupTitle, qualifyMemberAccessPreferences));
2229
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarForBuiltInTypes,
CSharpVSResources
.For_built_in_types, s_varForIntrinsicsPreviewTrue, s_varForIntrinsicsPreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));
2230
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarWhenTypeIsApparent,
CSharpVSResources
.When_variable_type_is_apparent, s_varWhereApparentPreviewTrue, s_varWhereApparentPreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));
2231
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.VarElsewhere,
CSharpVSResources
.Elsewhere, s_varWherePossiblePreviewTrue, s_varWherePossiblePreviewFalse, this, optionStore, varGroupTitle, typeStylePreferences));
2248
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferSwitchExpression,
CSharpVSResources
.Prefer_switch_expression, s_preferSwitchExpression, s_preferSwitchExpression, this, optionStore, expressionPreferencesGroupTitle));
2257
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.ImplicitObjectCreationWhenTypeIsApparent,
CSharpVSResources
.Prefer_implicit_object_creation_when_type_is_apparent, s_preferImplicitObjectCreationWhenTypeIsApparent, s_preferImplicitObjectCreationWhenTypeIsApparent, this, optionStore, expressionPreferencesGroupTitle));
2268
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferPatternMatching,
CSharpVSResources
.Prefer_pattern_matching, s_preferPatternMatching, s_preferPatternMatching, this, optionStore, patternMatchingPreferencesGroupTitle));
2269
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferPatternMatchingOverIsWithCastCheck,
CSharpVSResources
.Prefer_pattern_matching_over_is_with_cast_check, s_preferPatternMatchingOverIsWithCastCheck, s_preferPatternMatchingOverIsWithCastCheck, this, optionStore, patternMatchingPreferencesGroupTitle));
2270
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferPatternMatchingOverAsWithNullCheck,
CSharpVSResources
.Prefer_pattern_matching_over_as_with_null_check, s_preferPatternMatchingOverAsWithNullCheck, s_preferPatternMatchingOverAsWithNullCheck, this, optionStore, patternMatchingPreferencesGroupTitle));
2271
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferNotPattern,
CSharpVSResources
.Prefer_pattern_matching_over_mixed_type_check, s_preferPatternMatchingOverMixedTypeCheck, s_preferPatternMatchingOverMixedTypeCheck, this, optionStore, patternMatchingPreferencesGroupTitle));
2278
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferThrowExpression,
CSharpVSResources
.Prefer_throw_expression, s_preferThrowExpression, s_preferThrowExpression, this, optionStore, nullCheckingGroupTitle));
2279
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferConditionalDelegateCall,
CSharpVSResources
.Prefer_conditional_delegate_call, s_preferConditionalDelegateCall, s_preferConditionalDelegateCall, this, optionStore, nullCheckingGroupTitle));
2282
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CodeStyleOptions2.PreferIsNullCheckOverReferenceEqualityMethod,
CSharpVSResources
.Prefer_is_null_for_reference_equality_checks, s_preferIsNullOverReferenceEquals, s_preferIsNullOverReferenceEquals, this, optionStore, nullCheckingGroupTitle));
2283
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.PreferNullCheckOverTypeCheck,
CSharpVSResources
.Prefer_null_check_over_type_check, s_preferNullcheckOverTypeCheck, s_preferNullcheckOverTypeCheck, this, optionStore, nullCheckingGroupTitle));
2287
CSharpCodeStyleOptions.PreferredUsingDirectivePlacement,
CSharpVSResources
.Preferred_using_directive_placement,
2301
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));
2302
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));
2304
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));
2305
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));
2306
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));
2313
CSharpVSResources
.In_arithmetic_binary_operators,
2319
CSharpVSResources
.In_other_binary_operators,
2325
CSharpVSResources
.In_relational_binary_operators,
2342
new CodeStylePreference(
CSharpVSResources
.When_on_multiple_lines, isChecked: false),
2359
new CodeStylePreference(
CSharpVSResources
.Block_scoped, isChecked: false),
2360
new CodeStylePreference(
CSharpVSResources
.File_scoped, isChecked: false),
2377
new CodeStylePreference(
CSharpVSResources
.Never, isChecked: false),
2378
new CodeStylePreference(
CSharpVSResources
.When_possible, isChecked: false),
2379
new CodeStylePreference(
CSharpVSResources
.When_on_single_line, isChecked: false),
2445
new CodeStylePreference(
CSharpVSResources
.Unused_local, isChecked: false),
2446
new CodeStylePreference(
CSharpVSResources
.Discard, isChecked: true),
Options\Formatting\WrappingViewModel.cs (2)
40
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.WrappingPreserveSingleLine,
CSharpVSResources
.Leave_block_on_single_line, s_blockPreview, this, optionStore));
41
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine,
CSharpVSResources
.Leave_statements_and_member_declarations_on_the_same_line, s_declarationPreview, this, optionStore));
Options\IntelliSenseOptionPageStrings.cs (21)
12
=>
CSharpVSResources
.Show_completion_list_after_a_character_is_typed;
15
=>
CSharpVSResources
.Show_completion_list_after_a_character_is_deleted;
19
get { return
CSharpVSResources
.Completion; }
24
get { return
CSharpVSResources
.Selection_In_Completion_List; }
29
get { return
CSharpVSResources
.Place_keywords_in_completion_lists; }
34
get { return
CSharpVSResources
.Place_code_snippets_in_completion_lists; }
38
=>
CSharpVSResources
.Highlight_matching_portions_of_completion_list_items;
41
=>
CSharpVSResources
.Show_completion_item_filters;
43
public static string Option_Automatically_complete_statement_on_semicolon =>
CSharpVSResources
.Automatically_complete_statement_on_semicolon;
46
=>
CSharpVSResources
.Enter_key_behavior_colon;
49
=>
CSharpVSResources
.Never_add_new_line_on_enter;
52
=>
CSharpVSResources
.Only_add_new_line_on_enter_after_end_of_fully_typed_word;
55
=>
CSharpVSResources
.Always_add_new_line_on_enter;
58
=>
CSharpVSResources
.Snippets_behavior;
61
=>
CSharpVSResources
.Never_include_snippets;
64
=>
CSharpVSResources
.Always_include_snippets;
67
=>
CSharpVSResources
.Include_snippets_when_Tab_is_typed_after_an_identifier;
70
=>
CSharpVSResources
.Show_name_suggestions;
73
=>
CSharpVSResources
.Show_items_from_unimported_namespaces;
79
=>
CSharpVSResources
.Automatically_show_completion_list_in_argument_lists;
82
=>
CSharpVSResources
.Show_new_snippet_experience_experimental;
Snippets\SnippetCommandHandler.cs (2)
156
bstrPrefixText: surroundWith ?
CSharpVSResources
.Surround_With :
CSharpVSResources
.Insert_Snippet,
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
VisualStudioTestCompositions.vb (1)
21
GetType(
CSharpVSResources
).Assembly,