How do you autocomplete vars?

For example, I am going to write this:

var foo = GetFoo();

Rider can deduce variable's name only after I have written the right-hand part of the equation.

So I can type:

var x = GetFoo();

then I can go back and replace x with something sane and auto-completed.

But how to do that in the right order?

 

1 comment
Comment actions Permalink

Hi Anton,

A good way is to type

GetFoo();

first and then call `Introduce variable` action with `Alt-Enter`.

0

Please sign in to leave a comment.