-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-IDEBugIDE-FormatterCode formatter and/or smart indentCode formatter and/or smart indenthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Description
Version Used:
VS 17.0 Preview 1.1
Steps to Reproduce:
Type code such as
OrderingSyntax former = orderings[i], latter = orderings[j];
if (
(former, latter) is not (
{
Expression: IdentifierNameSyntax
{
Identifier: { ValueText: var formerIdentifier }
}
},
{
Expression: IdentifierNameSyntax
{
Identifier: { ValueText: var latterIdentifier }
}
}
)
)
{
continue;
}
...Expected Behavior:
The format will be like as below:
OrderingSyntax former = orderings[i], latter = orderings[j];
if (
(former, latter) is not (
{
Expression: IdentifierNameSyntax
{
Identifier: { ValueText: var formerIdentifier }
}
},
{
Expression: IdentifierNameSyntax
{
Identifier: { ValueText: var latterIdentifier }
}
}
)
)
{
continue;
}Actual Behavior:
When click the button 'Fix Formatting', then we get
Copilot
Metadata
Metadata
Assignees
Labels
Area-IDEBugIDE-FormatterCode formatter and/or smart indentCode formatter and/or smart indenthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Projects
Status
Completed
