Please provide
- Operating system: Win 10-64
- SonarLint plugin version: 7.1.0.75242
- Programming language you’re coding in: C#, .Net 8
- Is connected mode used: No
Consider these if
statements that should be merged:
if (ixs[cCount] > 1)
{
if ((control.Options & StandardizeOptions.ThrowInUnexpectedConditions) != 0)
throw new NotImplementedException("Processing of multiple bracket types is not implemented.");
}
Merging via Ctrl+.
produced the following the first time I tried it:
if ((ixs[cCount] > 1) && ((control.Options & StandardizeOptions.ThrowInUnexpectedConditions) != 0))
throw new NotImplementedException("Processing of multiple bracket types is not implemented.");
However, when I attempted to repeat for the purposes of this post, Sonarlint correctly formatted the parentheses. I was unable to replicate the issue in other attempts, including access via Ctrl+.
and the lightbulb.