114 references to PerLanguageOption2
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
BlockCommentEditing\BlockCommentEditingOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> AutoInsertBlockCommentStartString =
new
("csharp_insert_block_comment_start_string", defaultValue: true);
Microsoft.CodeAnalysis.EditorFeatures (27)
AddImportOnPaste\AddImportOnPasteOptionsStorage.cs (1)
17
public static readonly PerLanguageOption2<bool> AddImportsOnPaste =
new
("dotnet_add_imports_on_paste", defaultValue: true);
ExtractMethod\ExtractMethodPresentationOptionsStorage.cs (1)
13
public static readonly PerLanguageOption2<bool> AllowBestEffort =
new
("dotnet_allow_best_effort_when_extracting_method", defaultValue: true);
Formatting\FormattingOptionsStorage.cs (1)
12
new
("dotnet_format_on_paste", defaultValue: true);
InheritanceMargin\InheritanceMarginOptionsStorage.cs (2)
11
public static readonly PerLanguageOption2<bool?> ShowInheritanceMargin =
new
("dotnet_show_inheritance_margin", defaultValue: true);
15
public static readonly PerLanguageOption2<bool> InheritanceMarginIncludeGlobalImports =
new
("dotnet_show_global_imports_in_inheritance_margin", defaultValue: true);
InlineDiagnostics\InlineDiagnosticsOptionsStorage.cs (2)
12
new
("dotnet_enable_inline_diagnostics",
16
new
("dotnet_inline_diagnostics_location",
InlineHints\InlineHintsViewOptionsStorage.cs (1)
14
public static readonly PerLanguageOption2<bool> ColorHints =
new
(
KeywordHighlighting\KeywordHighlightingOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> KeywordHighlighting =
new
("dotnet_highlight_keywords", defaultValue: true);
LineSeparators\LineSeparatorsOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> LineSeparator =
new
("dotnet_display_line_separators", defaultValue: false);
Options\CompletionViewOptionsStorage.cs (4)
12
new
("dotnet_highlight_matching_portions_of_completion_list_items", defaultValue: true);
15
new
("dotnet_show_completion_item_filters", defaultValue: true);
19
new
("dotnet_enable_argument_completion_snippets", defaultValue: null);
22
new
("block_for_completion_items", defaultValue: true);
Options\LegacyGlobalOptionsWorkspaceService.cs (3)
26
private static readonly PerLanguageOption2<bool> s_generateOperators =
new
(
30
private static readonly PerLanguageOption2<bool> s_implementIEquatable =
new
(
34
internal static readonly PerLanguageOption2<bool> s_addNullChecks =
new
(
Options\NavigationBarViewOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> ShowNavigationBar =
new
(
Options\SignatureHelpViewOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> ShowSignatureHelp =
new
(
ReferenceHighlighting\ReferenceHighlightingOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> ReferenceHighlighting =
new
("dotnet_highlight_references", defaultValue: true);
RenameTracking\RenameTrackingOptionsStorage.cs (1)
13
public static readonly PerLanguageOption2<bool> RenameTrackingPreview =
new
("dotnet_show_preview_for_rename_tracking", defaultValue: true);
Shared\Options\FeatureOnOffOptions.cs (2)
17
public static readonly PerLanguageOption2<bool> RenameTracking =
new
("FeatureOnOffOptions_RenameTracking", defaultValue: true);
25
public static readonly PerLanguageOption2<bool> RefactoringVerification =
new
("FeatureOnOffOptions_RefactoringVerification", defaultValue: false);
SplitComment\SplitCommentOptionsStorage.cs (1)
12
new
PerLanguageOption2
<bool>("dotnet_split_comments", defaultValue: true);
StringCopyPaste\StringCopyPasteOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> AutomaticallyFixStringContentsOnPaste =
new
("dotnet_fix_string_contents_on_paste", defaultValue: true);
StringIndentation\StringIndentationOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> StringIdentation =
new
("dotnet_indent_strings", defaultValue: true);
Structure\OutliningOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> Outlining =
new
("dotnet_enter_outlining_mode_on_file_open", defaultValue: true);
Microsoft.CodeAnalysis.Features (13)
Diagnostics\Options\SolutionCrawlerOptionsStorage.cs (2)
17
public static readonly PerLanguageOption2<BackgroundAnalysisScope> BackgroundAnalysisScopeOption =
new
(
23
public static readonly PerLanguageOption2<CompilerDiagnosticsScope> CompilerDiagnosticsScopeOption =
new
(
EmbeddedLanguages\Json\LanguageServices\JsonDetectionOptionsStorage.cs (2)
12
public static readonly PerLanguageOption2<bool> DetectAndOfferEditorFeaturesForProbableJsonStrings =
new
(
17
public static PerLanguageOption2<bool> ReportInvalidJsonPatterns =
new
(
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexOptionsStorage.cs (1)
12
public static PerLanguageOption2<bool> ReportInvalidRegexPatterns =
new
(
src\Analyzers\Core\Analyzers\ValidateFormatString\FormatStringValidationOptionStorage.cs (1)
12
public static readonly PerLanguageOption2<bool> ReportInvalidPlaceholdersInStringDotFormatCalls =
new
(
src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (2)
28
public static readonly PerLanguageOption2<ImplementTypeInsertionBehavior> InsertionBehavior =
new
(
45
public static readonly PerLanguageOption2<ImplementTypePropertyGenerationBehavior> PropertyGenerationBehavior =
new
(
SymbolSearch\SymbolSearchOptions.cs (5)
57
public static PerLanguageOption2<bool> SearchReferenceAssemblies =
new
(
63
public static PerLanguageOption2<bool> SearchNuGetPackages =
new
(
69
public static PerLanguageOption2<bool> SearchReferencedProjectSymbols =
new
(
75
public static PerLanguageOption2<bool> SearchUnreferencedProjectSourceSymbols =
new
(
81
public static PerLanguageOption2<bool> SearchUnreferencedMetadataSymbols =
new
(
Microsoft.CodeAnalysis.LanguageServer.Protocol (53)
Features\Options\AutoFormattingOptionsStorage.cs (4)
20
internal static readonly PerLanguageOption2<bool> FormatOnReturn =
new
(
23
public static readonly PerLanguageOption2<bool> FormatOnTyping =
new
(
26
public static readonly PerLanguageOption2<bool> FormatOnSemicolon =
new
(
29
public static readonly PerLanguageOption2<bool> FormatOnCloseBrace =
new
(
Features\Options\BlockStructureOptionsStorage.cs (13)
33
public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCommentsAndPreprocessorRegions =
new
(
36
public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForDeclarationLevelConstructs =
new
(
39
public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCodeLevelConstructs =
new
(
42
public static readonly PerLanguageOption2<bool> ShowOutliningForCommentsAndPreprocessorRegions =
new
(
45
public static readonly PerLanguageOption2<bool> ShowOutliningForDeclarationLevelConstructs =
new
(
48
public static readonly PerLanguageOption2<bool> ShowOutliningForCodeLevelConstructs =
new
(
51
public static readonly PerLanguageOption2<bool> CollapseRegionsWhenFirstOpened =
new
(
54
public static readonly PerLanguageOption2<bool> CollapseImportsWhenFirstOpened =
new
(
57
public static readonly PerLanguageOption2<bool> CollapseSourceLinkEmbeddedDecompiledFilesWhenFirstOpened =
new
(
60
public static readonly PerLanguageOption2<bool> CollapseMetadataSignatureFilesWhenFirstOpened =
new
(
63
public static readonly PerLanguageOption2<bool> CollapseRegionsWhenCollapsingToDefinitions =
new
(
66
public static readonly PerLanguageOption2<bool> CollapseLocalFunctionsWhenCollapsingToDefinitions =
new
(
69
public static readonly PerLanguageOption2<int> MaximumBannerLength =
new
(
Features\Options\ClassificationOptionsStorage.cs (4)
25
new
("dotnet_classify_reassigned_variables", ClassificationOptions.Default.ClassifyReassignedVariables);
28
new
("dotnet_classify_obsolete_symbols", ClassificationOptions.Default.ClassifyObsoleteSymbols);
31
new
("dotnet_colorize_regex_patterns", ClassificationOptions.Default.ColorizeRegexPatterns);
34
new
("dotnet_colorize_json_patterns", ClassificationOptions.Default.ColorizeJsonPatterns);
Features\Options\CompletionOptionsStorage.cs (11)
45
public static readonly PerLanguageOption2<bool> TriggerOnTyping =
new
("dotnet_trigger_completion_on_typing", CompletionOptions.Default.TriggerOnTyping, group: s_completionOptionGroup);
46
public static readonly PerLanguageOption2<bool> TriggerOnTypingLetters =
new
("dotnet_trigger_completion_on_typing_letters", CompletionOptions.Default.TriggerOnTypingLetters, group: s_completionOptionGroup);
47
public static readonly PerLanguageOption2<bool?> TriggerOnDeletion =
new
("dotnet_trigger_completion_on_deletion", CompletionOptions.Default.TriggerOnDeletion, group: s_completionOptionGroup);
48
public static readonly PerLanguageOption2<EnterKeyRule> EnterKeyBehavior =
new
("dotnet_return_key_completion_behavior", CompletionOptions.Default.EnterKeyBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<EnterKeyRule>(), group: s_completionOptionGroup);
49
public static readonly PerLanguageOption2<SnippetsRule> SnippetsBehavior =
new
("dotnet_snippets_behavior", CompletionOptions.Default.SnippetsBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<SnippetsRule>(), group: s_completionOptionGroup);
50
public static readonly PerLanguageOption2<bool> ShowNameSuggestions =
new
("dotnet_show_name_completion_suggestions", CompletionOptions.Default.ShowNameSuggestions, group: s_completionOptionGroup);
55
public static readonly PerLanguageOption2<bool?> ShowItemsFromUnimportedNamespaces =
new
("dotnet_show_completion_items_from_unimported_namespaces", CompletionOptions.Default.ShowItemsFromUnimportedNamespaces, group: s_completionOptionGroup);
57
public static readonly PerLanguageOption2<bool> TriggerInArgumentLists =
new
("dotnet_trigger_completion_in_argument_lists", CompletionOptions.Default.TriggerInArgumentLists, group: s_completionOptionGroup);
64
public static PerLanguageOption2<bool> ProvideRegexCompletions =
new
("dotnet_provide_regex_completions", CompletionOptions.Default.ProvideRegexCompletions, group: s_completionOptionGroup);
65
public static readonly PerLanguageOption2<bool> ProvideDateAndTimeCompletions =
new
("dotnet_provide_date_and_time_completions", CompletionOptions.Default.ProvideDateAndTimeCompletions, group: s_completionOptionGroup);
66
public static readonly PerLanguageOption2<bool?> ShowNewSnippetExperienceUserOption =
new
("dotnet_show_new_snippet_experience", CompletionOptions.Default.ShowNewSnippetExperienceUserOption, group: s_completionOptionGroup);
Features\Options\DocumentationCommentOptionsStorage.cs (1)
20
public static readonly PerLanguageOption2<bool> AutoXmlDocCommentGeneration =
new
(
Features\Options\HighlightingOptionsStorage.cs (2)
21
new
("dotnet_highlight_related_regex_components",
26
new
("dotnet_highlight_related_json_components",
Features\Options\InlineHintsOptionsStorage.cs (13)
49
new
("dotnet_enable_inlay_hints_for_parameters",
54
new
("dotnet_enable_inlay_hints_for_literal_parameters",
59
new
("dotnet_enable_inlay_hints_for_indexer_parameters",
64
new
("dotnet_enable_inlay_hints_for_object_creation_parameters",
69
new
("dotnet_enable_inlay_hints_for_other_parameters",
74
new
("dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix",
79
new
("dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent",
84
new
("dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name",
91
new
("csharp_enable_inlay_hints_for_types",
96
new
("csharp_enable_inlay_hints_for_implicit_variable_types",
101
new
("csharp_enable_inlay_hints_for_lambda_parameter_types",
106
new
("csharp_enable_inlay_hints_for_implicit_object_creation",
111
new
("csharp_enable_inlay_hints_for_collection_expressions",
Features\Options\QuickInfoOptionsStorage.cs (1)
20
public static readonly PerLanguageOption2<bool> ShowRemarksInQuickInfo =
new
(
LspOptionsStorage.cs (4)
41
public static readonly PerLanguageOption2<bool> LspEnableReferencesCodeLens =
new
("dotnet_enable_references_code_lens", defaultValue: true, group: s_codeLensOptionGroup);
46
public static readonly PerLanguageOption2<bool> LspEnableTestsCodeLens =
new
("dotnet_enable_tests_code_lens", defaultValue: true, group: s_codeLensOptionGroup);
51
public static readonly PerLanguageOption2<bool> LspEnableAutoInsert =
new
("dotnet_enable_auto_insert", defaultValue: true, group: s_autoInsertOptionGroup);
56
public static readonly PerLanguageOption2<bool> LspOrganizeImportsOnFormat =
new
("dotnet_organize_imports_on_format", defaultValue: false, group: s_formattingOptionGroup);
Microsoft.CodeAnalysis.Workspaces (17)
Recommendations\RecommendationOptions.cs (2)
20
public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new
PerLanguageOption2
<bool>(
24
public static readonly PerLanguageOption2<bool> FilterOutOfScopeLocals = new
PerLanguageOption2
<bool>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
150
var option = new
PerLanguageOption2
<CodeStyleOption2<T>>(name, defaultValue, group, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\FadingOptions.cs (3)
11
public static readonly PerLanguageOption2<bool> FadeOutUnusedImports =
new
("dotnet_fade_out_unused_imports", defaultValue: true);
12
public static readonly PerLanguageOption2<bool> FadeOutUnusedMembers =
new
("dotnet_fade_out_unused_members", defaultValue: true);
13
public static readonly PerLanguageOption2<bool> FadeOutUnreachableCode =
new
("dotnet_fade_out_unreachable_code", defaultValue: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (2)
15
public static readonly PerLanguageOption2<bool> PlaceSystemNamespaceFirst =
new
(
21
public static readonly PerLanguageOption2<bool> SeparateImportDirectiveGroups =
new
(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (7)
26
public static PerLanguageOption2<bool> UseTabs = new
PerLanguageOption2
<bool>(
31
public static PerLanguageOption2<int> TabSize = new
PerLanguageOption2
<int>(
35
public static PerLanguageOption2<int> IndentationSize = new
PerLanguageOption2
<int>(
39
public static PerLanguageOption2<string> NewLine = new
PerLanguageOption2
<string>(
61
public static PerLanguageOption2<IndentStyle> SmartIndent = new
PerLanguageOption2
<IndentStyle>(
80
public static readonly PerLanguageOption2<int> WrappingColumn =
new
(
88
public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength =
new
(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
23
internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } =
new
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30
public static readonly PerLanguageOption2<bool> HideAdvancedMembers =
new
(
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Options\OptionKeyTests.cs (1)
86
var option2 = new
PerLanguageOption2
<bool>(name: "name", defaultValue: false);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
272
var perLanguageOption2 = new
PerLanguageOption2
<CodeStyleOption2<bool>>("test", new CodeStyleOption2<bool>(false, NotificationOption2.Warning)).WithPublicOption("test", "test");
Microsoft.VisualStudio.LanguageServices (1)
Workspace\VisualStudioNavigationOptionsStorage.cs (1)
11
public static readonly PerLanguageOption2<bool> NavigateToObjectBrowser =
new
("visual_studio_navigate_to_object_browser", defaultValue: false);