In eclipse, reveal current file in filesystem

后端 未结 10 590
耶瑟儿~
耶瑟儿~ 2020-12-12 19:02

In eclipse, is there a way, to reveal the currently selected file in the filesystem. I currently need it to open in explorer, but it could also be in finder or nautilus.

相关标签:
10条回答
  • 2020-12-12 20:04

    Note: You can also develop your own external tool to open the file in a Windows explorer

    alt text

    Or you can use an eclipse plugin like StartExplorer.

    alt text


    Notes on MacOS:

    zvikico mentions:

    On Mac OS X, replace the location with /usr/bin/open and the arguments should be just ${container_loc}.

    But Adam cautions:

    Doesn't work - OSX, you need to put quotes around the ${container_loc} otherwise you'll often get bizarre error messages because it can't cope with spaces in file names.

    But user2036022 details:

    you can use -R "${resource_loc}" on macosx as argument to /usr/bin/open to be consistent with other similar tools.

    0 讨论(0)
  • 2020-12-12 20:05

    Open the Properties of the file (Right Click->Properties) and the dialog will give you the full filesystem path.

    0 讨论(0)
  • 2020-12-12 20:06

    ExploreFS is a cross platform plugin and works fine on Ubuntu and Mac OSX.

    1. open "Install New Software" (from help menu in OSX),
    2. add http://www.junginger.biz/eclipse/,
    3. select ExploreFS from the checklist,
    4. choose appropriate options and install the extension.

    Now you can click on your project, package or file and select Explore in File System and it will open the location in your default file manager.

    screenshot

    0 讨论(0)
  • 2020-12-12 20:06

    Have a look at the PluginBox: http://pluginbox.sourceforge.net/plugins.html. This works with Linux as well. You can configure it precisely or choose a schema for Gnome, KDE, ...

    0 讨论(0)
提交回复
热议问题