VS Code: Drag a VS Code file tab into your terminal to get the absolute path
Last updated: 12th May 2020You can drag the file tab from VS Code straight into your terminal to get the absolute path for that file.
There is also a context menu, right click on the file tab and select:
- Copy path
Or
- Copy relative path
You can also bring up the Command Palette (Ctrl+Shift+P) in VS Code and search for copy path
. You will find two suggestions to copy the path of the active file, or copy the relative path of the active file. This allows for a keyboard only workflow.
You can also check out this Twitter thread which includes some extra information twitter.com/umaar/status/1250065767275663369