FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Rename shortcut

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
rael_gc



Joined: 12 Dec 2008
Posts: 6

PostPosted: Fri Dec 12, 2008 10:52 am    Post subject: Rename shortcut Reply with quote

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
View user's profile Send private message
anli



Joined: 19 Nov 2008
Posts: 37

PostPosted: Fri Dec 12, 2008 11:06 am    Post subject: Reply with quote

Ctrl-R works for me. Renaming, if I understand well, takes place in current file only.
Back to top
View user's profile Send private message
rael_gc



Joined: 12 Dec 2008
Posts: 6

PostPosted: Fri Dec 12, 2008 11:19 am    Post subject: Reply with 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 (as you can see in the attachment).


screenshot.jpg
 Description:
Netbeans screenshot
 Filesize:  17.37 KB
 Viewed:  2631 Time(s)

screenshot.jpg


Back to top
View user's profile Send private message
anli



Joined: 19 Nov 2008
Posts: 37

PostPosted: Fri Dec 12, 2008 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message
rael_gc



Joined: 12 Dec 2008
Posts: 6

PostPosted: Fri Dec 12, 2008 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
anli



Joined: 19 Nov 2008
Posts: 37

PostPosted: Fri Dec 12, 2008 11:55 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Petr Pisl
Posted via mailing list.





PostPosted: Fri Dec 12, 2008 1:36 pm    Post subject: Rename shortcut Reply with quote

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

PostPosted: Fri Dec 12, 2008 1:46 pm    Post subject: Reply with 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
View user's profile Send private message
Petr Pisl
Posted via mailing list.





PostPosted: Fri Dec 12, 2008 3:06 pm    Post subject: Rename shortcut Reply with quote

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

PostPosted: Fri Dec 12, 2008 5:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Petr Pisl
Posted via mailing list.





PostPosted: Fri Dec 12, 2008 5:35 pm    Post subject: Rename shortcut Reply with quote

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

PostPosted: Sat Apr 11, 2009 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
mozlima



Joined: 03 Sep 2009
Posts: 4

PostPosted: Thu Sep 03, 2009 6:34 am    Post subject: Reply with quote

After using CTRL+R what shortcut I need to use to unselect, here I need reopen the code to back editing the code Sad


thanks in advance
Back to top
View user's profile Send private message
Pet
Posted via mailing list.





PostPosted: Thu Sep 03, 2009 4:53 pm    Post subject: Rename shortcut Reply with quote

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

PostPosted: Fri Sep 04, 2009 12:37 am    Post subject: Reply with quote

Thanks its work with ESC Very Happy I was trying CTRL + ESC before >.<
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB