In Eclipse, how to open a file browser in the dire

2019-01-22 03:18发布

问题:

I know it's possible in eclipse to open file browsers from your project's resource browser, but is it possible for files that aren't part of your project ? Typically external includes are not found in your resource browser...

If there is the equivalent of $(resource_loc) for the editor, it would work.. But I wasn't able to find it. Can anyone help me on this ?

Thanks!

EDIT : I Found StartExplorer, but it doesn't work for me. It is hardcoded to use WINDOWS explorer or cmd.exe. Also, it still requires you to use the resource browser. Other than that it can open paths selected in the editor, but they must be full paths.

EDIT 2 : StartExplorer seems to have been upgraded. I no longer use eclipse, but if someone else is still looking for this, I'd look again at their stuff!

回答1:

"Window" -> "Open Perspectives" -> "Remote Systems", then a view with root 'Local' node will be displayed.

While in Project Explorer pane, to browse files of any node, right click and select Show in Remote Systems view to get there.



回答2:

For eclipse Luna (4.4) and later, You can use: Right Click->Show In->System Explorer



回答3:

From StartExplorer website:

This plug-in is inherently not platform-independent. Currently, the following operating systems/desktop environments are supported out of the box: Windows, Mac OS, Linux with Gnome, Linux with KDE, Linux with Xfce, Linux with LXDE.



回答4:

As far as I know you have to create a linked folder for your external includes to achieve your goal. After that you can use StartExplorer for you externals as well. If you do not like that plugin you could try another similar one called EasyShell which is a similar one but you can configure all of its commands.



回答5:

EasyShell seems quite descent to me (used in Ubuntu). It gives you the choices to open the Nautilus, to open the shell, to run a file and to copy the selected path. All of them appear with a right click on the package explorer of Eclipse. The installation was with no problems. Therefore, I would suggest it.

Hope I helped!



回答6:

You might want to try eExplorer, see my answer on https://stackoverflow.com/a/24149472/612123



回答7:

Shortcut key can also be created in Eclipse>Help>Preferences>General>Keys



回答8:

If you are using git, you can open Window > Show View > Other > Git Repositories. 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.

Another way is to open Window > Perspective > Other > Git.