visual-studio-codekeyboard-shortcuts

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.


Solution

  • 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.