In Eclipse, how to open a file browser in the directory of the currently edited file
Asked Answered
I

8

26

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!

Ineptitude answered 10/3, 2010 at 19:38 Comment(0)
D
17

"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.

enter image description here

Daedalus answered 13/3, 2010 at 7:8 Comment(1)
Seems like RSE is deprecated. No longer shipped with Eclipse, but you have to install from Marketplace. eclipse.org/tmDividivi
G
22

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

Gerick answered 23/10, 2015 at 21:16 Comment(5)
this is a most easy way, non plugin, non external cmdReitareiter
I'm assuming the other answers pre-date this functionality because this is definitely the right answer now.Shull
oxygen no this menu.Featherweight
@Featherweight This menu is in Oxygen.Dividivi
chansey: as @Dividivi said, It is in oxygen. I modified the answer to indicate that it is in Luna 4.4 or later.Gerick
D
17

"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.

enter image description here

Daedalus answered 13/3, 2010 at 7:8 Comment(1)
Seems like RSE is deprecated. No longer shipped with Eclipse, but you have to install from Marketplace. eclipse.org/tmDividivi
C
5

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.

Capsulate answered 29/4, 2013 at 8:33 Comment(0)
S
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.

Sinecure answered 13/3, 2010 at 7:29 Comment(0)
G
3

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!

Gono answered 19/1, 2014 at 9:26 Comment(0)
D
1

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.

Dividivi answered 20/4, 2018 at 0:19 Comment(0)
P
0

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

Plumbaginaceous answered 10/5, 2017 at 5:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.