refactor -> rename variable

Hello !

I will rename variables in a marked area.
I will use refactor -> rename.
Is there a way ?


Your sincerly

Stephan

3 comments
Comment actions Permalink

Stephan,

Please elaborate. Do you want to restrict renaming scope using selection in editor?
Probably relarted issue - http://youtrack.jetbrains.net/issue/WI-878.

Thank you!

0
Comment actions Permalink

Hello !

Thanks for the information.
In the moment i look for a idea.

I have a function:
---------------------------
public function test(){
        $wert = 1;
        $wert++;
        $wert++;

        $wert++;
        $wert++;
    }
-----------------------------

and i have marked an area in this function

dummy.jpg
Now i will rename in the marked area the variable ' $wert ' .
I'm afraid that's not possible !

Your sincerly

Stephan

0
Comment actions Permalink

Stephan,

The problem is that you can have several local variables inside selected fragment.
Anyway please create a feature request -http://youtrack.jetbrains.net/issues/WI#newissue=yes

Thank you for feedback!

0

Please sign in to leave a comment.