| View previous topic :: View next topic |
| Author |
Message |
Petr J. Posted via mailing list.
|
Posted: Thu Apr 23, 2009 6:12 am Post subject: Rename of variables (dev versions) |
|
|
Hi all,
rename of local variables (ctrl+r) doesn't work 2 weeks or more. Select
is ok.
Petr
--
petrovo
Aš
Czech Republic |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Thu Apr 23, 2009 7:50 am Post subject: Rename of variables (dev versions) |
|
|
Čau,
On čtvrtek 23 dubna 2009 08:12:49 Petr J. wrote:
| Quote: | rename of local variables (ctrl+r) doesn't work 2 weeks or more.
|
intentional - we allow to rename only variables that are known to be _local_ -
in other words, we try to avoid incorrect "refactoring" (if the variable is
defined in the global scope, IDE cannot know whether it is used in any other
file; the same applies for names of classes); please notice that CTRL + r is
just very simple refactoring. Feel free to file an issue [1], our actual
decision is not final yet.
What do you mean by this exactly?
Thanks,
Tomáš
[1] http://www.netbeans.org/community/issues
--
Tomas Mysik
address-removed |
|
| Back to top |
|
 |
kristian
Joined: 12 Nov 2008 Posts: 15
|
Posted: Tue May 05, 2009 5:33 pm Post subject: |
|
|
I prefer that it works like it used to. I think that CTRL+R used to work for renaming in the file-scope. I see your point with regards to:
| Quote: | | intentional - we allow to rename only variables that are known to be _local_ - in other words, we try to avoid incorrect "refactoring" (if the variable is defined in the global scope, IDE cannot know whether it is used in any other file; the same applies for names of classes) |
But this is not relevant for my day-to-day use. As long as I know that I have to use a different approach if I wan't to rename across multiple files. I guess this is the same for most PHP developers.
Has an issue for this been opened? I have tried searching the issues but I didn't find anything. Maybe I'm doing it the wrong way. I appears to be a very complicated system  |
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Tue May 05, 2009 7:39 pm Post subject: Rename of variables (dev versions) |
|
|
kristian wrote:
| Quote: | I prefer that it works like it used to. I think that CTRL+R used to work for renaming in the file-scope. I see your point with regards to:
| Quote: | intentional - we allow to rename only variables that are known to be _local_ - in other words, we try to avoid incorrect "refactoring" (if the variable is defined in the global scope, IDE cannot know whether it is used in any other file; the same applies for names of classes)
|
But this is not relevant for my day-to-day use. As long as I know that I have to use a different approach if I wan't to rename across multiple files.
Has an issue for this been opened? I have tried searching the issues but I didn't find anything. Maybe I'm doing it the wrong way. I appears to be a very complicated system ;-)
| I've reverted the behavior like it was (at least until real rename
refactoring is implemented).
http://www.netbeans.org/issues/show_bug.cgi?id=163313
Radek |
|
| Back to top |
|
 |
kristian
Joined: 12 Nov 2008 Posts: 15
|
Posted: Thu May 07, 2009 3:39 pm Post subject: |
|
|
| Thank you |
|
| 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
|
|
|
|