Eclipse: Get location of the current file?

后端 未结 6 1800
情深已故
情深已故 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:07

    The other solution ("File-->Properties" or "Alt+Enter") didn't work for me.

    I use:

    • Right Click (in current editor) --> Show In (shortcut: Alt+Shift+W) --> Project Explorer

    This shows in Project Explorer the location of the file. If the file is a class in a referenced library, the dependency tree is automatically opened.

提交回复
热议问题