eclipse 如何让eclipse显示文件系统中的文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10012019/
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
how to get eclipse show a folder from file system
提问by dermoritz
i need to see a folder (svn) from file system in eclipse (is there a file explore functionality). how to achieve that?
我需要在 Eclipse 的文件系统中看到一个文件夹(svn)(是否有文件浏览功能)。如何做到这一点?
i don't want the folder to be nested in a project. In best case eclipse links that folder to svn repository like all other projects.
我不希望文件夹嵌套在项目中。在最好的情况下,eclipse 像所有其他项目一样将该文件夹链接到 svn 存储库。
采纳答案by FrVaBe
There is a Remote SystemsView that offers access to your file system.
有一个远程系统视图可以访问您的文件系统。
Window -> Show View -> Other... -> Remote Systems -> Remote Systems
回答by Hartmut P.
Eclipse: File -> New -> Project -> General -> Project ->
Eclipse:文件 -> 新建 -> 项目 -> 常规 -> 项目 ->
Untick 'default location'
取消“默认位置”
Set location to the folder where your files reside you want to browse.
将位置设置为要浏览的文件所在的文件夹。
After pressing 'Finish' an Eclipse project is created showing all files residing in your folder
按“完成”后,将创建一个 Eclipse 项目,显示驻留在您文件夹中的所有文件
(because: creating a Eclipse project into an existing folder does not purge the files therein)
(因为:在现有文件夹中创建 Eclipse 项目不会清除其中的文件)
回答by E-Riz
Eclipse is project-centric, it will not show files or folders that are not part of a Project. You can create a link to any arbitrary location on your file system, but the link must live in a Project.
Eclipse 以项目为中心,它不会显示不属于项目的文件或文件夹。您可以创建指向文件系统上任意位置的链接,但该链接必须位于项目中。
The closest thing I know of would be to install the Remote System Explorer (RSE, see http://www.eclipse.org/tm/), which offers a Local node in its Remote Systems view. But I doubt it has any integration with svn.
我所知道的最接近的事情是安装远程系统资源管理器(RSE,请参阅http://www.eclipse.org/tm/),它在其远程系统视图中提供了一个本地节点。但我怀疑它与 svn 有任何集成。
回答by koma
open the Navigator view.... that is a view on the filesystem.
打开导航器视图......这是文件系统上的视图。
回答by RicardoS
You can also create a folder that is a link:
您还可以创建一个文件夹作为链接:
File -> New -> Folder -> Advanced (button) -> "Link to alternate location".
Generally I use it to link to my localhost server (container).
通常我用它来链接到我的本地主机服务器(容器)。
回答by drJava
You can also alternatively right click on the file, which you want to open, you will see there Show in Remote Systems view
. I do not know, if it is in other eclipse versions possible but I am making it with Eclipse Mars 4.4.
您也可以右键单击要打开的文件,您会在那里看到Show in Remote Systems view
。我不知道,是否可以在其他 Eclipse 版本中使用,但我正在使用 Eclipse Mars 4.4 制作它。
回答by wisbucky
If you are using git, you can open Window > Perspective > Git. That will give you a Git Repositories explorer, which shows the Working Tree. The Working Tree will show all files in the filesystem, even temporary ones you created that are not added to git yet.
如果您使用的是 git,您可以打开 Window > Perspective > Git。这将为您提供一个 Git 存储库资源管理器,其中显示了工作树。工作树将显示文件系统中的所有文件,甚至是您创建的尚未添加到 git 的临时文件。