开发者

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

开发者 https://www.devze.com 2022-12-22 08:08 出处:网络
I know it\'s possible in eclipse to open file browsers from your project\'s resource brows开发者_StackOverflow中文版er, but is it possible for files that aren\'t part of your project ? Typically exter

I know it's possible in eclipse to open file browsers from your project's resource brows开发者_StackOverflow中文版er, 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!


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

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


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

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


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.


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.


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!


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


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号