34 references to SpaceBeforeComma
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Formatting\CSharpFormattingOptions.cs (2)
126
/// <inheritdoc cref="CSharpFormattingOptions2.
SpaceBeforeComma
"/>
127
public static Option<bool> SpaceBeforeComma { get; } = CSharpFormattingOptions2.
SpaceBeforeComma
.ToPublicOption();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (1)
92
(options.GetOption(CSharpFormattingOptions2.
SpaceBeforeComma
) ? SpacePlacement.BeforeComma : 0) |
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (27)
Formatting\FormattingTests.cs (27)
6472
new(LanguageNames.CSharp) { {
SpaceBeforeComma
, true } });
7110
optionSet.Add(CSharpFormattingOptions2.
SpaceBeforeComma
, true);
7517
{
SpaceBeforeComma
, false },
7548
{
SpaceBeforeComma
, false },
7579
{
SpaceBeforeComma
, true },
7610
{
SpaceBeforeComma
, true },
7641
{
SpaceBeforeComma
, false },
7672
{
SpaceBeforeComma
, false },
7703
{
SpaceBeforeComma
, true },
7734
{
SpaceBeforeComma
, true },
7765
{
SpaceBeforeComma
, false },
7796
{
SpaceBeforeComma
, false },
7827
{
SpaceBeforeComma
, true },
7858
{
SpaceBeforeComma
, true },
7889
{
SpaceBeforeComma
, false },
7920
{
SpaceBeforeComma
, false },
7951
{
SpaceBeforeComma
, true },
7982
{
SpaceBeforeComma
, true },
8011
{
SpaceBeforeComma
, true },
11102
{
SpaceBeforeComma
, false },
11122
{
SpaceBeforeComma
, true },
11165
{
SpaceBeforeComma
, false },
11185
{
SpaceBeforeComma
, true },
11228
{
SpaceBeforeComma
, false },
11248
{
SpaceBeforeComma
, true },
11295
{
SpaceBeforeComma
, false },
11317
{
SpaceBeforeComma
, true },
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProvider.cs (1)
74
yield return Setting.Create(CSharpFormattingOptions2.
SpaceBeforeComma
, CSharpVSResources.Insert_space_before_comma, options, updaterService);
Options\AutomationObject\AutomationObject.Formatting.cs (2)
200
get { return GetBooleanOption(CSharpFormattingOptions2.
SpaceBeforeComma
); }
201
set { SetBooleanOption(CSharpFormattingOptions2.
SpaceBeforeComma
, value); }
Options\Formatting\SpacingViewModel.cs (1)
163
Items.Add(new CheckBoxOptionViewModel(CSharpFormattingOptions2.
SpaceBeforeComma
, CSharpVSResources.Insert_space_before_comma, s_delimiterPreview, this, optionStore));