In CodeWarrior there was a very useful feature in the CodeWarrior Projects view: with a context menu I can open that folder/file in Windows Explorer:
However, this feature is missing in Eclipse, so how to add this functionality?
That ‘Show in Windows Explorer’ is really handy, as I can quickly jump to that file or folder where it is on the disk.
Emulating ‘Show In Windows Explorer’
I was looking for a way how to do this, and some solutions include installing an extra Eclipse plugin. But there is an easy way without installing anything with using an external run configuration.
Open the External Tools Configuration or use the menu Run > External Tools > External Tools Configuration:
Then, do the following:
- Select the ‘Program’ group
- Press the ‘new’ button to create a new configuration
In the new configuration:
- Give the configuration a name
- Specify the command line for the Explorer (on Linux, use your file explorer):
- As arguments, specify it shall use the selected resource:
- Press Apply to store the configuration
- Then I can Run it
If you have selected a resource, you will get an error:
So make sure you select a folder/file before running the command.
If you have run the command at least once, it is now easily accessible in the drop down menu:
However, this is not a ‘global’ setting, and only applies to the workspace. So if you have multiple workspaces, you need to create an external tools configuration for each workspace. Or use the ‘Shared File’ option which stores the settings in a file:
Now I can copy that file .launch file to a project in my other workspace easily to have it imported.
There is no plugin needed for showing a file or folder in the host operating explorer view: an external tools configuration is good enough :-).
Happy Exploring 🙂