Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to go to specific folder in Eclipse?

Tags:

eclipse

From Eclipse, how to go to the specific folder? I mean in windows, how to open a command line which corresponding to the folder or direct open the file explorer to open the corresponding folder?

like image 679
Adam Lee Avatar asked Aug 26 '12 08:08

Adam Lee


People also ask

How do I navigate to a folder?

Use the cd command to change directories in Command Prompt. For example, type “cd Documents” to change the directory to the Documents folder. Type “cd ..” to go back up one directory, and use “dir” to list folders in your current directory.

How do I change directory in Eclipse terminal?

Open the workspace and then the project folder. Then run the Terminal application, type “cd” into the terminal window. “cd” is the command to change directory (or folder).

How do I go to a folder in Eclipse?

The Eclipse search dialog box allows you to search for files that contain a literal or a character pattern in the entire workspace, a set of projects, a specific project or folders selects in the package explorer view. Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.


2 Answers

You have to create an external tool with location ${env_var:SystemRoot}\explorer.exe (or cmd.exe) and arguments /select,${resource_loc} . Any selected file or directory can now be shown in the windows explorer.

Create an External tool

Go into the external tool configuration (you can find it into the corresponding toolbar icon) :

enter image description here

Then you can create your own external tool :

External Tool Creation

  1. Create a new Program (select Program in the tree)
  2. Name it shell
  3. Set the location to ${env_var:SystemRoot}\explorer.exe
  4. Set the arguments to /select,${resource_loc}
  5. Run the external tool

Once created you can run the external tool from the context menu or from the toolbar ...

like image 138
aleroot Avatar answered Nov 11 '22 12:11

aleroot


I have been using an Eclipse plugin called PathTools for sometime now, and am happy with it.

It adds a number of buttons to the Eclipse toolbar which allow you to :

  1. Directly open a cmd prompt at the selected folder.
  2. Open an Explorer window for the selected folder.

Update site : http://pathtools.googlecode.com/svn/trunk/PathToolsUpdateSite/site.xml

Sample screenshots

Installing the `Path Tools Feature`

I chose to install only the Path Tools Feature
enter image description here

Opening a terminal

Opening a terminal directly at the Folder Path : enter image description here
(The above snapshot is that for OSX but works in Windows as well)

Opening Explorer

Opening a folder directly in Explorer/Finder : enter image description here

like image 20
Ashutosh Jindal Avatar answered Nov 11 '22 13:11

Ashutosh Jindal