Copy file references fast, then jump back to them just as quickly.
Features
Copy Referrence
Right-click in the editor and choose Copy Referrence.
![]()
This command is smart:
- On a function, method, or constructor declaration line, it copies a function reference like
src/extension.ts::activate() - On any other line, it copies a line reference like
src/extension.ts::42
Other Commands
Super Power: Copy Line Referencealways copiespath::lineSuper Power: Copy Function Referencealways copiespath::function()Super Power: Go to Referenceopens the reference picker
Go to Reference
Press Ctrl+Alt+R on Windows/Linux or Cmd+Alt+R on Mac.
You can:
- Search files by name
- Paste a line reference like
src/extension.ts::42 - Paste a function reference like
src/extension.ts::activate()
Reference Format
References use :: as the separator.
src/extension.ts::42
src/extension.ts::activate()
Requirements
- VS Code 1.85.0 or later
- A language extension that provides document symbols for function-based references