11

Possible Duplicate:
Search and Replace Entire Project (Netbeans)

Other IDE's have a feature to find and replace something in code. I want this feature in Netbeans. I know there is the refactor feature, but that's only for variables. How can I find and replace text that isn't a variable name?

Community
  • 1
  • 1
Mohammad Saberi
  • 12,864
  • 27
  • 75
  • 127
  • Please explain why you downvoted so the question can be improved upon, rather than sit idle. – Sturm Jul 24 '12 at 18:36
  • Although it wasn't my downvote, I can fathom a guess. If you read the tooltip on the down arrow, it says "This question does not show any research effort." A quick Google search or a quick search in Stack Overflow turns up [several](http://stackoverflow.com/questions/3804427/search-and-replace-only-in-open-files-netbeans) [questions](http://stackoverflow.com/questions/4000376/search-and-replace-entire-project-netbeans) and [solutions](http://netbeans.org/project_downloads/www/shortcuts.pdf). – Ricardo Altamirano Jul 24 '12 at 18:45

2 Answers2

32

CTRL+SHIFT+H will open the replace dialogue where you can find+replace in any or all of your open projects.

Sturm
  • 4,105
  • 3
  • 24
  • 39
4

Ctrl + Shift + H gives you the Find and Replace dialogue, as shown:

enter image description here

If you ever have trouble finding a certain function in Netbeans, one of the first places you can check is the list of keyboard shortcuts.

Ricardo Altamirano
  • 14,650
  • 21
  • 72
  • 105