Formatting is removing the space between "return" keyword and constants
Hi!
I've recently customized my code style settings, and must have messed with the wrong setting, but I can't identify which it might be.
When I run code cleanup or when I aut-format code, lines similar to this:
return 0f;
Get changed into:
return0f;
Which results in compile errors.
Does someone know what setting is relevant for this?
I'm using rider for Unity and C# excusively, so it's only settings relevant to those contexts.
Please sign in to leave a comment.
Hi Jordy,
Here is the setting: File | Settings | Editor | Code Style | C# -> Spaces -> Before other parentheses -> Between keyword and expression. The fact that it affects return statements without parentheses is a bug: https://youtrack.jetbrains.com/issue/RSRP-482274.
Thank you for drawing our attention to it.
Have a nice day!