Hi,
Code cleanup does not put the open barce for methods and functions on a new line.
Yet I have specified in the vs2017 tools/options C# New Lines section. Place open brace on new line for methods…
It reformats to …
bool MyFunction () {
return false
}
this is what is want
bool MyFunction()
{
return false
}
I have looked in the CR options but have not find one to change this behaviour.
Regards
Peter
Hi Peter,
We have been already notified about this issue and we are working on it. As a temporary workaround I can suggest you disable the 'Format document' cleanup. We are sorry for the inconvenience this issue caused to you.
@Peter
I reported this issue a couple of days and found that disabling the below 3 will be ok until they patch it.
Editor>C#>Formatting>Spacing
Untick: Statement, Parameters and Attributes
the "parameters" option is the one causing the above issue you mention.
Alan,
Thanks, that 'fixed' the problem…
Thanks Alan