Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simply search a string in entire netbeans solution

Tags:

java

netbeans

Is there a way to find the entire solution for a string in netbeans. I believe that there is a find [ ] tab to find a word in the .java file but looking to find the word in the entire solution.

p.s. Not to find and replace.

Thanks alot in advance.

like image 558
Kasanova Avatar asked Jun 11 '13 06:06

Kasanova


People also ask

How do I search for text in NetBeans?

Choose Edit | Find in Projects to search all files in all open projects (including project metadata files). In the Projects window, right-click the node for the folder or project that you want to search in and choose Find (or press Ctrl-F).

How do I autofill in NetBeans?

Under Preferences -> Editor -> Code Completion is where you can find the auto complete properties. You can disable the 'Auto Popup Completion Window' to keep it from automatically popping. Also while the completion window is displayed, pressing the esc will close it without inserting an autocomplete value.

How do I find Javadoc in NetBeans?

Displaying Javadoc or choose Source > Show Documentation from the menu bar. The Javadoc for this element is displayed in a popup window. From the menu bar, select Window > IDE Tools > Javadoc Documentation to open the Javadoc window, in which the documentation is refreshed automatically for the location of your cursor.

How do I get suggestions in NetBeans?

It is easy to enable Java hints in NetBeans. Select "Tools" from the title bar, then select "Options" from the drop-down menu. Choose the "Editor" option and then select the "Hints" tab. At this point, make sure that the "Language" drop-down is set to "Java" (other choices include PHP, JavaScript, and Ruby).


2 Answers

Click - Edit - Find in Projects

or ctrl + shift + F

Can enter the containing text and the scope - Open Projects - Main Project - Selection

like image 71
Dan675 Avatar answered Oct 03 '22 08:10

Dan675


If you click on the project in the projects pane.

Then press and hold Ctrl+Shift+H

A find and replace window will come up where you can specify what you would like to find and what to replace it with. You can use regular expressions and then after you search you can walk through all the results in the different files that are returned.

like image 27
Navin Avatar answered Oct 03 '22 08:10

Navin