Copy Path with Line NumberCopy the current file path and cursor line or selected line range to the
clipboard. For example, the command copies
The extension runs in VS Code's local UI host, so it copies to the local clipboard when you work in a Remote SSH window. Use
When multiple disjoint selections are present, the first contiguous block in the file is used. Files inside a workspace use a path relative to their workspace folder. Files outside a workspace use their absolute path. The copied result is also shown in the status bar briefly. DevelopmentOpen this folder in VS Code and press |