Convert var to explicit type missing in v10

I have recently upgraded to v10 and one of my highly used features seems to be missing.

If I declare a variable as follows:

var i = 10;

I can then place my cursor in the "var" keyword, hit alt + enter, and have ReSharper convert the "var" into an "int". This no longer works since upgrading to 10.

Obviously this is a primitive example, but it's very useful when dealing with classes with longer names.

Can this be re-introduced?

2 comments
Comment actions Permalink

Do you have the context action enabled?

R# -> Options -> Code Editing -> C# -> Context Actions -> Replace 'var' with explicit type declaration

0
Comment actions Permalink

On the day of installation this feature definitely didn't work, but having rebooted my machine it's working just fine again now. How strange!

0

Please sign in to leave a comment.