9 references to PreferSimpleUsingStatement
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
65
public CodeStyleOption2<bool> PreferSimpleUsingStatement => GetOption(CSharpCodeStyleOptions.
PreferSimpleUsingStatement
);
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
60
CSharpCodeStyleOptions.
PreferSimpleUsingStatement
,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
IntroduceUsingStatement\IntroduceUsingStatementTests.cs (2)
25
{ CSharpCodeStyleOptions.
PreferSimpleUsingStatement
, new CodeStyleOption2<bool>(false, NotificationOption2.Silent) }
30
{ CSharpCodeStyleOptions.
PreferSimpleUsingStatement
, new CodeStyleOption2<bool>(true, NotificationOption2.Silent) }
src\Analyzers\CSharp\Tests\UseSimpleUsingStatement\UseSimpleUsingStatementTests.cs (1)
69
{ CSharpCodeStyleOptions.
PreferSimpleUsingStatement
, CodeStyleOption2.FalseWithSilentEnforcement }
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
95
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.
PreferSimpleUsingStatement
, ServicesVSResources.Prefer_simple_using_statement, options, updater);
Options\AutomationObject\AutomationObject.Style.cs (2)
356
get { return GetXmlOption(CSharpCodeStyleOptions.
PreferSimpleUsingStatement
); }
357
set { SetXmlOption(CSharpCodeStyleOptions.
PreferSimpleUsingStatement
, value); }
Options\Formatting\StyleViewModel.cs (1)
2269
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.
PreferSimpleUsingStatement
, ServicesVSResources.Prefer_simple_using_statement, s_preferSimpleUsingStatement, s_preferSimpleUsingStatement, this, optionStore, codeBlockPreferencesGroupTitle));