Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you make NetBeans ignore files when searching for files?

Tags:

netbeans

In NetBeans when you go to Navigate -> Go to File you can search for files by filename. Is there a way to instruct NetBeans to ignore some files. It's picking lots of files from a tmp directory in my project which I never intend to open and it's just noise.

like image 365
pupeno Avatar asked Apr 01 '10 04:04

pupeno


People also ask

How do I search for a file in Netbeans?

To initiate such a file search, do one of the following: 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).

Where are files stored in Netbeans?

You can find your project directory by going to the "Netbeans "Projects" tab, right-clicking in your project folder and selecting "Properties". The "Project folder" will be shown on at the top of the new window displayed (i.e. "C:\Users\admin\Documents\NetBeansProjects\YourProjectName").


4 Answers

You can also add folders to the "Files ignored by the IDE" configuration.

Select Tools|Options and add the folder names to the regex.

Netbeans: Files ignored by IDE

NB: I have not yet confirmed that this achieves what is described.

like image 92
OldCurmudgeon Avatar answered Oct 21 '22 01:10

OldCurmudgeon


In NetBeans 7 you go to "Project Properties" then to "Ignored Folders" and you just add your folders there.

like image 22
Mario Awad Avatar answered Oct 20 '22 23:10

Mario Awad


You can configure include/exclude file patterns on a project by project basis. This feature will allow you to add an exclude pattern for your 'tmp' directory, which will stop 'Go to File' suggesting files contained in this directory.

To configure bring up the project properties (File -> Project Properties), select sources, and click 'includes/excludes' button. I.e.:

Netbeans Project Properties

like image 23
Alistair Sutherland Avatar answered Oct 21 '22 00:10

Alistair Sutherland


In my version of Netbeans (6.9.1 on Win 7), there is no button under Project Properties -> Source in which to enter exclusion patterns.

You have to go to Tools -> Options -> Miscellaneous -> Files and add the necessary file names or extensions under "files ignored by the IDE" in the Ignored Files Pattern field regexp.

For ignoring an entire folder, it is (in my version) on the project properties screen, but not under Sources; instead look at the "Ignored Folders" category.

like image 32
eon Avatar answered Oct 21 '22 01:10

eon