Eclipse: Get location of the current file?

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

    Linking to Project Explorer won't work if you have many files - it will select the right file in the list, but it won't "scroll" to that portion so it is visible.

    You'd have to manual scroll the Project Explorer view to see where the file is. It could also be nested so deeply that the full location will be obscured by truncation.

    Another way to quickly (keyboard-free) see the path is to hover over the file type icon (on top of the open editor window).

提交回复
热议问题