Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>oh-my-copyNew to Visual Studio Code? Get it now.
oh-my-copy

oh-my-copy

oh-my-copy

| (0) | Free
Copy selected code with file and line context for Codex CLI
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

oh-my-copy

oh-my-copy is a VS Code extension that copies selected code with file/line context for external tools like Codex CLI.

Install

1) VS Code Marketplace (recommended)

  • Install from Marketplace: https://marketplace.visualstudio.com/items?itemName=oh-my-copy.oh-my-copy

2) GitHub Release VSIX (works without Marketplace)

  1. Open Releases: https://github.com/YeonKyuJeon/oh-my-copy/releases
  2. Download oh-my-copy-<version>.vsix
  3. Install the VSIX:
code --install-extension ./oh-my-copy-<version>.vsix

For Antigravity:

antigravity --install-extension ./oh-my-copy-<version>.vsix

Default Output

### src/components/Button.tsx:42-45 `const handleClick = () => { // ... }`

Default template:

### {file}:{lines} {code}

Commands

  • Oh My Copy: Copy With Context (oh-my-copy.copyWithContext)

Default Keybinding

  • macOS: ctrl+cmd+alt+c
  • Windows/Linux: ctrl+alt+c

Settings

  • ohMyCopy.outputTemplate
    • Output template. Placeholders: {file}, {lines}, {code}
    • {code} is inserted wrapped in a template literal (backticks)
  • ohMyCopy.compactCodeToSingleLine
    • true by default. Collapses multiline/extra spaces into one line before injecting {code}
  • ohMyCopy.enableAntigravityClipboardFallback
    • true by default. In Antigravity, prefer shell clipboard command fallback
  • ohMyCopy.antigravityCopyCommand
    • Optional Antigravity-specific copy command. If empty:
    • macOS: pbcopy, Windows: clip, Linux: xclip -selection clipboard
  • ohMyCopy.includeLineRangeForMultiline
    • true by default. Uses start-end for multiline selections
  • ohMyCopy.copyCommand
    • Optional shell command. If set, output is piped to this command via stdin
    • Leave empty to use VS Code clipboard API directly
  • ohMyCopy.showNotification
    • Show success message after copying

Antigravity Support

When running in Antigravity (app name contains antigravity), oh-my-copy can use shell clipboard fallback automatically.

Development

bun install
bun run compile
bun run watch

Package

bun run package

Manual Install (No Marketplace)

  • MANUAL_INSTALL.md

Release (Maintainers)

  • RELEASE.md
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft