I know that is possible to extract a method from a piece of code (Refactor->Extract method), but I miss the same tool to extract a local variable as other IDEs do.
For example:
if (someFunctionCall()) {...}
I want to extract this call to a local variable, because I use the returned value in multiple parts within the same scope.
bool localvar = someFunctionCall();
if (localvar) {...}