This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201066 - RFE: Refactoring when cursor is located before '$'
Summary: RFE: Refactoring when cursor is located before '$'
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 08:49 UTC by Masaki Katakai
Modified: 2012-04-24 15:09 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2011-08-18 08:49:58 UTC
I think this is an RFE for refactoring.

I got this opinion from Japanese mailing list. Could you evaluate it?

For example, here is the code.

        $hoge=false;

When the cursor(|) is located between 'e' and '=' like

        $hoge|=false;

then try to Ctrl+R to rename, it works. [hoge] is selected and can change the name.

It works cursor is located between '$' and 'h'.

        $|hoge=false;

However, when cursor is located at top of the line like

        |$hoge=false;

when I type Ctrl+R, it shows error dialog - it says "Cannot refactor here".

I just got a feeling that refactoring should work in this case too.
Comment 1 Ondrej Brejla 2012-04-24 15:09:26 UTC
Works for me in 7.2.