Tuesday, 13 November 2012

Launching file directory from eclipse

Sometimes, developing with eclipse, it is good to open the directory where the file is stored. This could be done directly from the file in eclipse, using external tools.

On Windows, it could be done in this way:
1. Open eclipse
2. On the menu on the top, click on Run -> External Tools -> External Tools Configuration.
3. In the new windows, right click on "Program" and then, "New"
4. Enter name. e.g. Explorer
5. Enter the follow data in location:

${env_var:SystemRoot}\explorer.exe

6. Enter the follow data in arguments:
/select,${resource_loc}

Now, in the eclipse, you can select any file and then, click on Run -> Run External Tools -> Explorer to open the file directory.

No comments:

Post a Comment