How to copy only path of a folder, without file name in VS Code
06:38 13 Jun 2026

I'm using this code to copy path of a file:

{"key": "ctrl+shift+alt+f11","command": "copyFilePath","when": "!editorFocus"},
{"key": "ctrl+shift+alt+f11","command": "copyFilePath","when": "editorFocus"},

But how to copy only path of the folder, no file name.

I tried this extension Copy, but there is only option for coping file name.

windows visual-studio-code vscode-extensions