How can I get Eclipse to show .* files?

前端 未结 12 1691
慢半拍i
慢半拍i 2020-11-30 16:21

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

相关标签:
12条回答
  • 2020-11-30 16:46

    1. From Package Explorer open the Filters... dialog:

    2. Then uncheck .* resources option:

    0 讨论(0)
  • 2020-11-30 16:46

    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.

    0 讨论(0)
  • 2020-11-30 16:46

    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.

    0 讨论(0)
  • 2020-11-30 16:50

    Preferences -> Remote Systems -> Files -> Show hidden files

    (make sure this is checked)

    0 讨论(0)
  • 2020-11-30 16:53

    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

    0 讨论(0)
  • 2020-11-30 16:58

    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.

    0 讨论(0)
提交回复
热议问题