Copy File Path with Range
VSCode extension to copy file paths with selection ranges for easy sharing with coding assistants.
Features
- Copy with line ranges: Select code and copy path with line/column ranges
- Two modes:
- Relative path:
src/main.py:42-58
- Absolute path:
/home/user/project/src/main.py:42-58
- Smart formatting:
- Single line:
:42
- Multiple lines:
:42-58
- With columns:
:42:15-58:30
- Multiple selections:
:42-45,:50-52
Usage
- Select code in the editor
- Right-click and choose:
- Copy Relative Path with Range -
Alt+L (Windows/Linux) or Option+L (Mac)
- Copy Absolute Path with Range -
Alt+Shift+L (Windows/Linux) or Option+Shift+L (Mac)
Installation
Install from the VS Code Marketplace or search for "Copy File Path with Range" in the Extensions view.
License
MIT
| |