Skip to content

Smart break line should not insert parentheses if I didn't type them #80753

@DoctorKrolic

Description

@DoctorKrolic

Version Used:
Latest VS 2022

Steps to Reproduce:

using System.Text.Json;

var options = new JsonSerializerOptions$$

Press Shift + Enter to trigger smart break line at $$

Expected Behavior:
Constructor parentheses should not be inserted since I didn't have them. I may want to skip them entirely as it is valid syntax:

using System.Text.Json;

var options = new JsonSerializerOptions
{
    $$
};

Actual Behavior:
Constructor parentheses are still inserted:

using System.Text.Json;

var options = new JsonSerializerOptions()
{
    $$
};

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions