Code formatting - "extra" line breaks
I have an if statement with a function call that looks like this:
if (!Function(string.Format("Long Text with parmeter {0}", stringParameter), functionParameter))
{
...
}
And when it is auto formatted with the options I have selected, it ends up like this:
if (
!Function(
string.Format("Long Text with parmeter {0}",
stringParameter),
functionParameter))
{
...
}
But that isn't really what I'm trying to format to. Ideally I would like it to look like this:
if (!Function(string.Format("Long Text with parmeter {0}",
stringParameter),
functionParameter))
{
...
}
I cannot seem to find the right combination of options to get that result. Is it possible to do so?
Please sign in to leave a comment.
Hello Brian,
It is a known issue https://youtrack.jetbrains.com/issue/RSRP-274953. You are welcome to comment and vote for it.
Also please try unticking the following option: ReSharper | Options | Code Editing | C# | Formatting Style | Other | Align Multiline Constructs | Call arguments.
Thanks!