Space Formatting Setting for default(typename) ?

Hello Community,

I'm looking for the setting for how ReSharper formats the spaces in default(typename).  For instance, default(bool) is being formatted as default( bool ) and I want to change that so it renders as default(bool).

Thank you for any assistance you can provide!
Michael

4 comments
Comment actions Permalink

Hello Michael,

Please try to untick ReSharper | Options | Code Editing | C# | Formatting Style | Spaces | Within Parentheses | Parentheses.

Thanks!

0
Comment actions Permalink

Sorry for the delay here Alexander... for some reason the forums here do not automatically subscribe me to the forum threads that I create.  That seems very broken. :p

I actually prefer to have spaces in my paranthesis.  I prefer to let my code "breathe" and not sofocate it like a savage. :)

However, "default(T)" is considered a descrete symbol and not a function/declaration, as this is equivalent to "null" or "true" or "0" once it is evaluated, and obviously no spaces in there.

Is this a bug?

0
Comment actions Permalink

Hello Michael,

  Thanks for the reply.

  I logged a new request to YouTrack https://youtrack.jetbrains.com/issue/RSRP-434607.

Thanks!

0
Comment actions Permalink

Awesome!  Thank you Alexander.  I'm a big fan. :D

0

Please sign in to leave a comment.