Skip to content

About

Quickly copy relative or absolute file paths with single-line, line-range, and multi-selection references.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

LinePath

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)

Install (pre-built)

On macOS, Linux, Git Bash, or WSL:

curl -fsSL https://raw.githubusercontent.com/Wulf/vscode-linepath/main/scripts/install-vsix.sh | bash

Install (from source)

npm install
npm run package

code --install-extensions dist/linepath-X.X.X.vsix

Publishing

  1. Bump version in package.json
  2. Run npm run package
  3. Push new .vsix to main -- it'll be in the dist/ folder for everyone to download.

About

Quickly copy relative or absolute file paths with single-line, line-range, and multi-selection references.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages