In eclipse, reveal current file in filesystem

后端 未结 10 589
耶瑟儿~
耶瑟儿~ 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 19:39

    Try the EasyShell extension: http://marketplace.eclipse.org/content/easyshell

    0 讨论(0)
  • 2020-12-12 19:40
    • @VonC has given the solution, but this solutions helps to understand more and put shortcut to the feature:

    • Explorer command line arguments

      • /select [object] - selects the file or folder in the new explorer window
    • Directly we can not put shortcut to this feature, but setting shortcut to Last launched external Tool, we can put as follows:

    0 讨论(0)
  • 2020-12-12 19:49

    I cannot seem to comment, so I will post as an answer instead On OSX the answer @zvikico is very close, I would change it to:

    Location: /usr/bin/open
    Arguments: -R ${container_loc}
    

    The -R argument is a reveal in finder argument, as opposed to actually trying to open the file.

    Then you just Run As Shell as mentioned in the other external tool answers

    0 讨论(0)
  • 2020-12-12 19:51

    I've been recently using Eclipse Luna version, and it has that feature natively implemented, very nice!

    In "Project Explorer" view, right click on the file you're interested in --> "Show In" --> "System Explorer"

    enter image description here

    0 讨论(0)
  • 2020-12-12 19:58

    Why don't you right click on your file and select "show in> system explorer" then you will find life is beautiful.

    BTW, my eclipse version :Luna Service Release 1 (4.4.1)[for mac]

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

    Adding Show in Nautilus using External Tools is pretty easy too, very similar to the process for Windows in VonC's answer. Simply create the following shell script, chmod +x it and add it to the PATH. Then use it in Eclipse's External Tools Configuration window, as shown in the screenshot below.

    ~/bin$ cat run-nautilus.sh 
    #!/bin/bash
    nautilus `dirname $1`
    

    Set up the external tools configuration as shown here

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