Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search and Replace only in open files (netbeans)

Tags:

netbeans

Anyone know if it's possible to search and replace in all opened files in netbeans? Can't seem to find the option if there even is one.

I'm using the Netbeans 6.9 PHP IDE

like image 835
ChrisR Avatar asked Sep 27 '10 13:09

ChrisR


People also ask

How do you do search and replace in NetBeans?

To search and replace text, click in the file that you want to replace text, press Ctrl-H, and fill in the Find What and Replace With fields. By default, matches to a Find command remain highlighted in the Source Editor after you have dismissed the Find dialog box. To turn off the highlighting, press Alt-Shift-H.

How do I open package explorer in NetBeans?

In NetBeans 8.2 Go to Window->Navigator in menu bar or press Ctrl+7 and select Projects it will open a folder as work space .


6 Answers

CTRL+SHIFT+H

This will open the Replace in Projects, where-in you can search and replace on files on all open projects, or on the selected project only.

like image 166
Ruel Avatar answered Oct 04 '22 06:10

Ruel


Open the file you want the replacements. Press Ctrl + H And them at the bottom you will see

enter image description here

like image 23
Pankaj Bhagat Avatar answered Oct 04 '22 04:10

Pankaj Bhagat


It's available in builds >= 7.4 from NetBeans. Not available in 7.3. I just got a status update message from NetBeans that they've added this feature.

  1. Use Replace in Projects. Shortcut = CTRL+SHIFT+H
  2. Select Open Documents

You can see how it looks likes here

like image 45
coder247 Avatar answered Oct 04 '22 06:10

coder247


To search in open files press CTRL+SHIFT+F and in section scope select Open Documents.

enter image description here

like image 38
JuZer Avatar answered Oct 04 '22 06:10

JuZer


Sure you can ... or at least you can do something very similar ...

Go to projects view and select multiple files (the files you have opened in this case). Then press CTRL+F and start searching in the selected nodes. It's not exactly 'opened files' but I think it's your best choice.

Hope that helps!

PD: CTRL + CLICK is a good method to select multiple files on Windows.

like image 44
Beto Aveiga Avatar answered Oct 04 '22 04:10

Beto Aveiga


This seems impossible in netbeans 6.9 and it hasn't been introduced in Netbeans 7 either.

like image 33
ChrisR Avatar answered Oct 04 '22 06:10

ChrisR