Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off file and folder refactoring in netbeans 6.9 or 7.0 beta 2

I want to turn off annoying file refactoring as I have a php project and it is useless

If i click a folder and press F2 to rename that folder, it won't let me do it without going through the refactoring dialogue, which is buggy so that makes it worse.

For example when I hit "do not refactor" checkbox, the affirmative action button says "preview"... what does that even mean?

And then to make matters worse, sometimes it refuses to rename a file or folder and I can't work out why.

Any ideas?

like image 221
Jason Avatar asked Sep 08 '10 04:09

Jason


2 Answers

F2 in "Projects" browser works for me in NetBeans 7.

  • Open "Tools/Options/Keymap"
  • press F2 in "Search in Shortcuts"
  • make sure that F2 is not assigned to "Refactor"
like image 85
k2s Avatar answered Sep 29 '22 08:09

k2s


Use Ctrl+R that set by default. You can go to tool->options->keymaps then search for rename and change to the shortcut accordingly.

like image 30
channa ly Avatar answered Sep 29 '22 09:09

channa ly