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.
Try the EasyShell extension: http://marketplace.eclipse.org/content/easyshell
Explorer command line arguments
Directly we can not put shortcut to this feature, but setting shortcut to Last launched external Tool, we can put as follows:
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
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"
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]
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`