Eclipse: Get location of the current file?

后端 未结 6 1801
情深已故
情深已故 2021-02-03 20:44

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.

6条回答
  •  无人及你
    2021-02-03 21:17

    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.

提交回复
热议问题