Quick Quote
A VS Code extension that quickly copies code snippets with file context, optimized for pasting into LLM conversations.

Features
Select code and press the keyboard shortcut to copy it with context:
Default (Relative Path):
- Mac:
Ctrl+Cmd+C
- Windows/Linux:
Ctrl+Alt+C
Absolute Path:
- Mac:
Ctrl+Cmd+Shift+C
- Windows/Linux:
Ctrl+Alt+Shift+C
// your code here (with common indentation removed)
path/to/file.ts:15-23
- Code block with appropriate language identifier
- Common indentation removed for brevity
- File path (relative to workspace root by default)
- Line range showing the source location
Installation
From Source
- Clone this repository
- Run
npm install
- Run
npm run compile
- Press F5 to open a new VS Code window with the extension loaded
Package as VSIX
npm install -g @vscode/vsce
vsce package
Then install the .vsix file via VS Code's Extensions view.
Development
npm run compile - Compile TypeScript
npm run watch - Watch for changes and recompile
- Press F5 to start debugging
Why This Extension?
When working with LLMs like Claude Code:
- Specificity: Providing exact file paths and line numbers helps the LLM understand context
- Token efficiency: Removing unnecessary indentation reduces token usage
- Workflow speed: Quick keyboard shortcuts beat manual formatting
License
MIT
| |