VS Code Extensions
S

Selected Lines Reference

by anilzeybek

Copy the active file path and selected line range in a compact text format.

Downloads

7

Rating

— (0)

Version

0.0.3

Last updated

Apr 21, 2026

Copy the active workspace-relative file path and selected line range in this format:

extensions/proto/Cargo.toml:6-13

For a single line:

extensions/proto/Cargo.toml:6

Usage

Select code in an editor and run:

Selected Lines Reference: Copy File Path and Selected Line Range

Default shortcuts:

  • macOS: Ctrl+Shift+Alt+Cmd+C
  • Windows/Linux: Ctrl+Shift+Alt+Meta+C

Development

Open this folder in VS Code and press F5 to launch an Extension Development Host.

Packaging

Install dependencies:

npm install

Create a .vsix package:

npm run package

Publish to the Marketplace:

npm run publish

Related extensions