Would it be possible to get a setting (if not default behavior) to use var when introducing the variable, instead of the explicit type (e.g. Random in the example above)?
(Recreating this on behalf of @sbrockway due to accidental transfer of the original issue he logged.)
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
/cc @kendrahavens
I'm wondering if the code style settings for "var" preferences have any effect on this refactoring?

Apologies for the accidental transfer of the original issue @sbrockway - and GitHub won't let me transfer it back.
@gewarren you are correct. Those settings work perfectly. Thank you!
Most helpful comment
/cc @kendrahavens
I'm wondering if the code style settings for "var" preferences have any effect on this refactoring?