Petr Gazarov
Petr Gazarov

Reputation: 3821

Keyboard shortcut to copy full file path of the current file

I would like a keyboard shortcut to copy the full path of the currently open file. Do I need to add a new key binding, or is there an already existing shortcut?

I'm using a Mac.

Upvotes: 1

Views: 739

Answers (5)

Raphael Pinel
Raphael Pinel

Reputation: 2820

You can also right click on the tab of the opened file. There seem to be 2 options:

Copy Path with shortcut Opt Cmd C on Mac

Copy relative path with shortcut Shift Opt Cmd C on Mac

enter image description here

Upvotes: 0

Kevin Yang
Kevin Yang

Reputation: 11

Cmd+K Opt+Cmd+C works on Mac for me. You can view the shortcut using @Dash's answer

Upvotes: 0

Pranshu Goyal
Pranshu Goyal

Reputation: 21

Command + option + C to copy the path of a file

Upvotes: 2

Akil Makda
Akil Makda

Reputation: 431

There an already existing shortcut.

Shift + Alt + c

Upvotes: -1

Dash
Dash

Reputation: 1299

Go to Preferences > Keyboard Shortcuts, and search for the command @command:copyFilePath. If there is a keyboard shortcut set, it will be there. If not, you can set one yourself.

Upvotes: 3

Related Questions