Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to set shortcut for Copy file path in sublime text 3? I tried:

    { "keys": ["super+i"], "command": "copy_file_path" }

But seemingly command copy_file_path not valid.

shortcut for "Copy file path" in sublime text 3

share|improve this question

1 Answer 1

up vote 14 down vote accepted

All you need to do is change "copy_file_path" to "copy_path".

To discover this, I hit Ctrl` to open the console, then ran


to have all actions logged to the console. I then right-clicked and selected Copy File Path, and

command: copy_path 

showed up. I assigned the key combination, ran it, and it worked. To finish up, I run


so the console doesn't get clogged with unnecessary info, then hit Ctrl` again to close the console.

share|improve this answer
+1 for teaching how you got the answer –  JannieT Oct 21 '14 at 19:39
I would really appreciated if you could say how you came to know about sublime.log_commands? Probably sublime's API? –  hamid Dec 14 '14 at 11:20
@Hamid yes, this is documented in Sublime's API. –  MattDMo Dec 14 '14 at 18:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.