views:

11704

answers:

7

By default, Eclipse won't show my .htaccess file that I maintain in my project. It just shows an empty folder in the Package Viewer tree. How can I get it to show up? No obvious preferences.

+2  A: 

In your package explorer, pull down the menu and select "Filters ...". You can adjust what types of files are shown/hidden there.

Looking at my Red Hat Developer Studio (approximately Eclipse 3.2), I see that the top item in the list is ".* resources" and it is excluded by default.

Steve Moyer
+57  A: 

In the package explorer, in the upper right corner of the view, there is a little down arrow. Tool tip will say view menu.

Click that, Select Filters. uncheck .* resources.

So Package Explorer -> View Menu -> Filters -> uncheck .* resources.

scubabbl
Nailed it, thanks.
jodonnell
Awesome, thanks!
Tyler Egeto
Didn't even see that arrow there. Thanks!
JasCav
Excellent, thanks!!
letseatfood
+2  A: 

If you're using Eclipse PDT, this is done by opening up the PHP explorer view, then clicking the upside-down triangle in the top-right of that window. A context window appears, and the filters option is available there. Clicking the Filters menu option opens a new window, where .* files can be unchecked, thus allowing the editing of .htaccess files.

I searched forever for this, so I'm sorta answering my own question here. I'm sure someone else will have the same problem too, so I hope this helps someone else as well.

Cory Collier
+1  A: 

Great tip! Thanks scubabbl

FYI... Using Eclipse 3.4.1 on Mac 10.5.6 In my environment, "Filters" is actually "Customize View"

Ajay

http://www.tapinferno.com/

+2  A: 

Hi guys,

If using Zend Studio, same arrow, go to RSE view, click on the downward facing arrow, hit preferences, and then check show hidden files.

That did the trick for me.

Cheers, Valentin

vsecades
+5  A: 

Cory is correct

@ If you're using Eclipse PDT, this is done by opening up the PHP explorer view

I just spent about half an hour looking for the little arrow, until I actually looked up what the 'PHP Explorer' view is. Here is a screenshot:

Flickr page with PHP perspective edit image

p.s. sorry about the link to the image. I'm new to Stackoverflow and can't post images yet.

Aaron Newton
+2  A: 

In my case, I wanted to see .htaccess files, but not all the other .* resources.
In Zend Studio for Eclipse, in PHP Explorer (not Remote System Explorer), click the downward facing arrow (next to the left/right arrows).
Choose Filters.
Uncheck .* resources
In the "Name filter patterns" area, type the filenames you want to ignore.
I used: .svn, .cvs, .DS_Store, .buildpath, .project

lo_fye