0

I'm talking about boxes like these:

enter image description here

assylias
  • 321,522
  • 82
  • 660
  • 783
Curtis.T
  • 11
  • 3
  • have you tried to search with ctrl+f? – Ben Sch May 15 '18 at 08:24
  • What do you mean by "outside of a variable name"? – assylias May 15 '18 at 08:24
  • this should help you https://stackoverflow.com/questions/4000376/search-and-replace-entire-project-netbeans – Ben Sch May 15 '18 at 08:25
  • I'm asking if there's a shortcut which can be used in NetBeans to change all variables which have the same name at once so that you don't have to change all of their names individually. – Curtis.T May 15 '18 at 08:26
  • Yep, i misunderstood, blame on me, but as @BenSch suggest, this looks like a duplicate ? ^^ – N.K May 15 '18 at 08:27
  • @Curtis.T once you are inside one of the red boxes, just type a new name and it will change in all the other red boxes too. – assylias May 15 '18 at 08:28
  • You're looking for the shortcut for the Rename refactoring. Ctrl-R. http://www.codejava.net/ides/netbeans/10-netbeans-shortcut-keys-for-code-refactoring – Erwin Bolwidt May 15 '18 at 08:29
  • CTRL+R.......,, – MadProgrammer May 15 '18 at 08:32
  • Did you consider trying to have a look at [Highlights of NetBeans IDE 8.0 Keyboard Shortcuts & Code Templates](https://netbeans.org/project_downloads/usersguide/shortcuts-80.pdf)? – MadProgrammer May 15 '18 at 10:13

1 Answers1

0

You would need to do this:

Right click variable name -> Refactor -> Rename

A red box will outline that variable everywhere it is used and rename it to what you enter.

As a shortcut to answer the OP's question, click the variable name and use

CTRL + R

Kleo G
  • 247
  • 1
  • 4
  • 20