15

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
jordanpg
  • 6,386
  • 4
  • 46
  • 70
  • 4
    right click and pull down to "Copy Path" - or there's a shortcut key, but it may vary by machine. On Mac, it's shift-command-C. – Don Roby Oct 11 '14 at 18:45

3 Answers3

21

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.

kgf3JfUtW
  • 13,702
  • 10
  • 57
  • 80
18

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.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Anton Dozortsev
  • 4,782
  • 5
  • 34
  • 69
-1

I found Ctl+Shift+Alt+C can copy path with UNIX slash, not backslash.

osexp2000
  • 2,910
  • 30
  • 29