tags:

views:

110

answers:

4

If I've got a file open in Eclipse, how can I figure out where it is on the filesystem?

For example, in Vim I would use :pwd.

+4  A: 

Just hit Alt-Enter.

tangens
Perfect, thanks.
David Wolever
+1  A: 

Eclipse also has the ability to link the explorer view with the current file, so that whenever you change a file, it is expanded and selected in the explorer view.

Just look for the following image at the top of the view: alt text

Topher Fangio
But even there you won't see the location in your file system.
tangens
@tangens - Oh, that's very true...that always annoyed me too. It's been a while since I had to deal with Eclipse.
Topher Fangio
Ah, that's really good to know about. Thanks.
David Wolever
+2  A: 

Use the Eclipse menu:

File->Properties

or the shortcut:

Alt-Enter

You should be able to see the Location associated with the Resource

Alexandre Pauzies
Perfect, thanks.
David Wolever
+2  A: 

What you're looking for is the 'Properties' dialogue for the current file. This can be activated in two ways:

  • Selecting from the menu: File -> Properties
  • Using the shortcut: Alt + Enter

This gives you a dialogue which contains both the full path of the document, as well as the relative path from the workspace root.

The dialogue can be quite handy: it allows you to highlight and copy the file path.

Grundlefleck