Performing a Find in NetBeans

One of the features I like about Emacs is being able to go to a shell and perform a search. I usually use the find command. This lets me find things using wildcards and to perform a search within the found files. Now that I'm using NetBeans, I needed to learn how to search using NetBeans. The way I do this is to highlight the top level directory in which I want to search. I usually use the Favorites list for this. I then hit 'Ctrl-F' or right click on the mouse and choose 'Find' from the menu if I have the mouse in my hand...which I ususally do since I need to select the correct directory. The Find dialog displays.

To search for data within a file, enter your criteria in the 'Full Text' tab (the first tab in the dialog).

To search for a Java file with a specific name, go to the next tab entitled 'Object Name'. For you keyboarders out there, you can hit 'Ctrl-Page Down'. Enter the name of the file \*without the .java extension\*. NetBeans knows this is a managed object and it knows what type of object is being searched for (we'll get to that next), so it already knows the extension.

Next, go to the 'Type' tab. To select 'Java Source Objects', the selection you want, I usually hit the 'J' key 6 times and it is highlighted. The last thing to do is hit 'Enter' and the search will start. You'll see the 'Search Results' window display and let you know if it found anything. Happy Searching!
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Darryl Mocek

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today