C#: Convert variable declaration with default value to 'var' style

Is it possible to auto-convert this

object? x = null;

to that?

var x = default(object);

I'm using ReSharper 2023.3.4.

Regards, Jonas

0
2 comments
Hello Jonas,
thank you for contacting us.
We don't have this possibility at this moment.
You are welcome to create a feature request in YouTrack: https://youtrack.jetbrains.com/issues/RSRP
Thank you!
0

Hi Olga,

thank you for the feedback. I created a feature request here.

Regards, Jonas

0

Please sign in to leave a comment.