如何让 Eclipse 显示 .* 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/98610/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:24:24  来源:igfitidea点击:

How can I get Eclipse to show .* files?

eclipsefilehidden

提问by jodonnell

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.

默认情况下,Eclipse 不会显示我在项目中维护的 .htaccess 文件。它只是在包查看器树中显示一个空文件夹。我怎样才能让它显示出来?没有明显的偏好。

回答by scubabbl

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

在包浏览器中,在视图的右上角,有一个向下的小箭头。工具提示会说查看菜单。从该菜单中,选择过滤器

filters menu

过滤器菜单

From there, uncheck .* resources.

从那里,取消选中 .* 资源。

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

所以Package Explorer -> View Menu -> Filters -> uncheck .* resources

With Eclipse Kepler and OS X this is a bit different:

对于 Eclipse Kepler 和 OS X,这有点不同:

Package Explorer -> Customize View -> Filters -> uncheck .* resources

回答by Aaron Newton

Cory is correct

科里是对的

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

@如果您使用的是 Eclipse PDT,这是通过打开 PHP 资源管理器视图来完成的

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:

我只花了大约半个小时寻找小箭头,直到我真正查到了“PHP Explorer”视图。这是一个屏幕截图:

PHP perspective edit image

PHP透视图编辑

回答by sergionni

For Project Explorer View:
1.Click on arrow(View Menu) in right corner
2.Select Customize View...item from menu
3.Uncheck *.resourcescheckbox under Filterstab
4.Click OK

对于项目资源管理器视图
1.单击右上角的箭头(视图菜单
2.从菜单中选择自定义视图...项目
3.取消选中 *。过滤器选项卡下的资源复选框4.单击确定

--
Eclipse Juno

--
日食朱诺

回答by tmsimont

I'm using 64 bit Eclipse for PHP Devleopers Version: Helios Service Release 2

我正在为 PHP Devleopers 版本使用 64 位 Eclipse:Helios Service Release 2

It cam with RSE..

它带有 RSE ..

None of the above solutions worked for me... What I did was similar to scubabble's answer, but after clicking the down arrow (view menu) in the top of the RSE package explorer I had to mouseover "Preferences" and click on "Remote Systems"

上述解决方案都不适用于我......我所做的类似于 scubabble 的答案,但是在单击 RSE 包浏览器顶部的向下箭头(查看菜单)后,我必须将鼠标悬停在“首选项”上并单击“远程”系统”

I then opened the "Remote Systems" nav tree in the left of the preferences window that came u and went to "Files"

然后我打开了首选项窗口左侧的“远程系统”导航树,然后转到“文件”

Underneath a list of File types is a checkbox that was unchecked: "Show hidden files"

在文件类型列表下方是一个未选中的复选框:“显示隐藏文件”

CHECK IT!

核实!

回答by bezz

On Mac: Eclipse -> Preferences -> Remote Systems -> Files -> click Show Hidden Files.

在 Mac 上:Eclipse -> 首选项 -> 远程系统 -> 文件 -> 单击显示隐藏文件。

回答by Saikat

1. From Package Exploreropen the Filters...dialog:

1. 从Package Explorer打开Filters...对话框:

enter image description here

在此处输入图片说明

2. Then uncheck .* resourcesoption:

2.然后取消选中.* resources选项:

enter image description here

在此处输入图片说明

回答by vsecades

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

如果使用 Zend Studio,同样的箭头,转到 RSE 视图,单击向下的箭头,点击首选项,然后选中显示隐藏文件。

That did the trick for me.

这对我有用。

回答by lo_fye

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

就我而言,我想查看 .htaccess 文件,但不是所有其他 .* 资源。
在 Zend Studio for Eclipse 中,在 PHP Explorer(不是远程系统资源管理器)中,单击向下的箭头(在左/右箭头旁边)。
选择过滤器。
取消选中 .* 资源
在“名称过滤器模式”区域中,键入要忽略的文件名。
我用过:.svn、.cvs、.DS_Store、.buildpath、.project

回答by Steve Moyer

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.

查看我的 Red Hat Developer Studio(大约是 Eclipse 3.2),我看到列表中的顶部项目是“.* resources”,默认情况下它被排除在外。

回答by Cory Collier

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.

如果您使用的是 Eclipse PDT,则可以通过打开 PHP 资源管理器视图,然后单击该窗口右上角的倒三角形来完成此操作。出现一个上下文窗口,过滤器选项在那里可用。单击“过滤器”菜单选项会打开一个新窗口,可以在其中取消选中 .* 文件,从而允许编辑 .htaccess 文件。

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.

我一直在寻找这个,所以我在这里回答我自己的问题。我相信其他人也会遇到同样的问题,所以我希望这对其他人也有帮助。