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?

Comment actions Permalink

Do you have the context action enabled?

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

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!


Please sign in to leave a comment.