Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Intellij IDEA, is there a way to copy the path of the current editor tab to the clipboard?

I'm doing some writing and would like to copy the path of the current editor tab (as shown in the tooltip here) to the clipboard:

Intellij screenshot showing editor tab path

Anyone happen to know a shortcut for this?

like image 320
jordanpg Avatar asked Oct 11 '14 18:10

jordanpg


2 Answers

Press Alt+Home to select current file on Navigation Bar:

enter image description here

Then Shift+Command+C to copy path to a file and Esc come back to editor.

like image 56
Anton Dozortsev Avatar answered Oct 04 '22 04:10

Anton Dozortsev


Ctrl+Shift+C works on Windows, even if your focus is on the editor.

I assume Cmd+Shift+C will also work on a Mac.

like image 21
kgf3JfUtW Avatar answered Oct 04 '22 04:10

kgf3JfUtW