Marius van Witzenburg "Learned my lesson in life, now setting my action to stay in life."

14Apr/102

Show hidden .htaccess files in Eclipse/Aptana

Most webdevelopers require .htaccess files to be visible in their projects, since by default Eclipse and Aptana both hide files starting with a . (=period) this can be quite irritating since you have to open the file from your operating system file explorer.

The fix to make .htaccess files visible is quite simple, you have to modify the file browser view filter to show hidden files but hide certain file types so you won't get a mess in your view.

First goto the filters menu by clicking the little arrow on the top right of the file browser and click 'Filters...'.

See the menu below:
eclipse hidden files 1 512x320 Show hidden .htaccess files in Eclipse/Aptana

When you are at the filter menu you will see the following window:
eclipse hidden files 2 448x512 Show hidden .htaccess files in Eclipse/Aptana

In this window uncheck '.* resources' and check 'Name filter patterns (matching names will be hidden):'.

Now you have to add a filter because you will be flooded by hidden files in your file explorer.
The filter I used is:

._*, *.svn, .cvsignore, _notes, .*.swp, .DS_Store, .AppleDouble, .project, .buildpath, .settings

You might append more filters to your needs.

In case you have a remote filesystem plugin installed you might need to check 'Show hidden files' in your preferences.

This is an example how this window might look:
eclipse hidden files r 512x447 Show hidden .htaccess files in Eclipse/Aptana

Another handy thing to know, never edit the .project file!

That was about it for now, happy coding! ;-)