Copy the current file path with line numbers from VS Code.
For example:
src/extension.ts:3(no selection or when an entire line selected)src/extension.ts:5-19(multiple lines selected)src/extension.ts:5,20,28,39,52(multiple cursors)
VSCode Commands:
LinePath: Copy Relative Filepath(command ID:linepath.copyRelativeFilepath)LinePath: Copy Absolute Filepath(command ID:linepath.copyAbsoluteFilepath)
On macOS, Linux, Git Bash, or WSL:
curl -fsSL https://raw.githubusercontent.com/Wulf/vscode-linepath/main/scripts/install-vsix.sh | bashnpm install
npm run package
code --install-extensions dist/linepath-X.X.X.vsix- Bump version in
package.json - Run
npm run package - Push new
.vsixtomain-- it'll be in thedist/folder for everyone to download.