| View previous topic :: View next topic |
| Author |
Message |
rael_gc
Joined: 12 Dec 2008 Posts: 6
|
Posted: Fri Dec 12, 2008 10:52 am Post subject: Rename shortcut |
|
|
I'm loving in this Netbeans plugin. A lot of amazing Netbeans features for PHP.
Simple question: why the Rename feature doesn't have the same shortcurt (Ctrl+R), as in Java plugin?
In fact, the Rename feature has no shortcut in the PHP Plugin.
Last edited by rael_gc on Fri Dec 12, 2008 11:17 am; edited 1 time in total |
|
| Back to top |
|
 |
anli
Joined: 19 Nov 2008 Posts: 37
|
Posted: Fri Dec 12, 2008 11:06 am Post subject: |
|
|
| Ctrl-R works for me. Renaming, if I understand well, takes place in current file only.
|
|
| Back to top |
|
 |
rael_gc
Joined: 12 Dec 2008 Posts: 6
|
Posted: Fri Dec 12, 2008 11:19 am Post subject: |
|
|
I'm using NetBeans IDE 6.5 (Build 200811100001) + PHP plugin 1.2.2, and the Rename feature on the right mouse click has no shortcut. And Ctrl+R doesn't work for me (as you can see in the attachment).
| Description: |
|
| Filesize: |
17.37 KB |
| Viewed: |
2631 Time(s) |

|
|
|
| Back to top |
|
 |
anli
Joined: 19 Nov 2008 Posts: 37
|
Posted: Fri Dec 12, 2008 11:38 am Post subject: |
|
|
| In Menu->Tools->Options->Keymap->Refactor I have Ctrl-R for 'Rename'. OTOH, Menu->Refactor has not any enabled items at all (but disabled 'Rename' also has Ctrl-R shortcut).
|
|
| Back to top |
|
 |
rael_gc
Joined: 12 Dec 2008 Posts: 6
|
Posted: Fri Dec 12, 2008 11:48 am Post subject: |
|
|
As I can see, this Rename option (Menu->Tools->Options->Keymap->Refactor->Rename) is the one for Java, and not works for PHP.
The PHP Rename has no shortcut, and works only if you do a right click and select Rename.
|
|
| Back to top |
|
 |
anli
Joined: 19 Nov 2008 Posts: 37
|
Posted: Fri Dec 12, 2008 11:55 am Post subject: |
|
|
| rael_gc wrote: | As I can see, this Rename option (Menu->Tools->Options->Keymap->Refactor->Rename) is the one for Java, and not works for PHP.
The PHP Rename has no shortcut, and works only if you do a right click and select Rename. |
I also think there are two different 'Ctrl-R' - don't know where your PHP's Ctrl-R has gone
|
|
| Back to top |
|
 |
Petr Pisl Posted via mailing list.
|
Posted: Fri Dec 12, 2008 1:36 pm Post subject: Rename shortcut |
|
|
Hi,
you have NetBeans 6.5 FCS.
In java plugin there are two renames. Rename action and instant rename.
Rename action is a refactoring action, instant rename renames only in
context of one file and only the private class members. Both actions
are available under CTRL+R shortcut.
In PHP there is only instant rename. We don't have the refactoring
rename yet, but we are working on this. So in PHP is only the instant
rename and is available under the same shortcat CTRL+R. But because it
is only instant rename, it can work in certain contexts. In the trunk,
there is more limited the instant rename then in NetBeans 6.5. In trunk
the instant rename really works only for private class members.
I hope it should be clear now.:)
Regards,
Petr
| Quote: | I'm using NetBeans IDE 6.5 (Build 200811100001) + PHP plugin 1.2.2, and the Rename feature on the right mouse click has no shortcut. And Ctrl+R doesn't work for me.
|
|
|
| Back to top |
|
 |
rael_gc
Joined: 12 Dec 2008 Posts: 6
|
Posted: Fri Dec 12, 2008 1:46 pm Post subject: |
|
|
Thanks for the explanation, but as you can see in the attachment, I tried the shortcut Ctrl+R in private class members, and the shortcut doesn't work.
If I click in the Rename option after a right button mouse click, it works.
|
|
| Back to top |
|
 |
Petr Pisl Posted via mailing list.
|
Posted: Fri Dec 12, 2008 3:06 pm Post subject: Rename shortcut |
|
|
This is strange. Could you just to try start NB from command line with
--userdir option? http://blogs.sun.com/netbeansphp/entry/userdir .
It will start netbeans from scratch with default settings. Just to find
out, whether in you settings something is not in a clash. Let me know
the result.
Thanks,
Petr
| Quote: | Thanks for the explanation, but as you can see in the attachment, I tried the shortcut Ctrl+R in private class members, and the shortcut doesn't work.
If I click in the Rename option after a right button mouse click, it works.
|
|
|
| Back to top |
|
 |
rael_gc
Joined: 12 Dec 2008 Posts: 6
|
Posted: Fri Dec 12, 2008 5:01 pm Post subject: |
|
|
I tried as you describe, and I even deleted all my user configuration to start a new one (and downloaded all plugins again).
But Ctrl+R do nothing. I tried on Vista Business and Ubuntu 8.10.
As the above screenshot, the Rename option has no associated shortcut in the mouse right button click.
Thanks.
|
|
| Back to top |
|
 |
Petr Pisl Posted via mailing list.
|
Posted: Fri Dec 12, 2008 5:35 pm Post subject: Rename shortcut |
|
|
rael_gc wrote:
| Quote: | I tried as you describe, and I even deleted all my user configuration to start a new one (and downloaded all plugins again).
| Could you try it just in to the php distro. Just download the php distro
OS independent zip file, unzip to a folder and run from command line in
bin folder with command
netbeans.bat --userdir c:\testuserdir
or
./netbeans --userd /path/to/tmp/userdir
If this will work, then some other module consume the shortcut and then
I will try to investigate which one.
Regards,
Petr
| Quote: |
But Ctrl+R do nothing. I tried on Vista Business and Ubuntu 8.10.
As the above screenshot, the Rename option has no associated shortcut in the mouse right button click.
Thanks.
|
|
|
| Back to top |
|
 |
korgano
Joined: 11 Apr 2009 Posts: 1
|
Posted: Sat Apr 11, 2009 5:28 pm Post subject: |
|
|
Hi everybody,
on my system ( Kubuntu 8.10 and Sun Java 6.10 ) the rename feature does not seem to work. I even tried starting with "--userdir /tmp/test" and creating a new empty project.
If I press CTRL+R or the use the "rename"-option from the context-menu, nothing happens.
Any ideas?
thanks,
korgano
EDIT: I forgot to tell which versions I tried this with: 6.7M3 + 200904030200 + 200904100200
|
|
| Back to top |
|
 |
mozlima
Joined: 03 Sep 2009 Posts: 4
|
Posted: Thu Sep 03, 2009 6:34 am Post subject: |
|
|
After using CTRL+R what shortcut I need to use to unselect, here I need reopen the code to back editing the code
thanks in advance
|
|
| Back to top |
|
 |
Pet Posted via mailing list.
|
Posted: Thu Sep 03, 2009 4:53 pm Post subject: Rename shortcut |
|
|
Try Escape or Enter
On Thu, Sep 3, 2009 at 8:34 AM, mozlima<address-removed> wrote:
| Quote: | | After using CTRL+R what shortcut I need to use to unselect, here I need reopen the code to back editing the code
|
|
| Back to top |
|
 |
mozlima
Joined: 03 Sep 2009 Posts: 4
|
Posted: Fri Sep 04, 2009 12:37 am Post subject: |
|
|
Thanks its work with ESC I was trying CTRL + ESC before >.<
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|