Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ChatGPT PasteNew to Visual Studio Code? Get it now.
ChatGPT Paste

ChatGPT Paste

Kansock-Industries

| (0) | Free
Paste code copied from ChatGPT without extra blank lines on macOS.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ChatGPT Paste

A small VS Code extension for macOS that pastes code copied from ChatGPT without unwanted blank lines.

Problem

When you manually select code in ChatGPT and copy it with Cmd+C, pasting it into VS Code may insert an extra blank line between every line.

ChatGPT Paste uses the HTML representation stored in the macOS clipboard to reconstruct the copied code.

Usage

  1. Select code in ChatGPT.
  2. Press Cmd+C.
  3. Place the cursor in VS Code.
  4. Press Cmd+Shift+V.

Normal Cmd+V is not affected.

Requirements

  • macOS
  • Visual Studio Code

Keyboard Shortcut

Action Shortcut
Normal Paste Cmd+V
ChatGPT Paste Cmd+Shift+V

Installation

Download the .vsix file from GitHub Releases and install it with:

code --install-extension chatgpt-paste-0.0.1.vsix

You can also use Extensions → … → Install from VSIX… in VS Code.

How It Works

The macOS clipboard can contain multiple representations of copied content, including plain text and HTML.

When code is manually selected in ChatGPT, the HTML representation preserves the structure of the copied lines. ChatGPT Paste reads that representation and reconstructs the text before inserting it into the editor.

The extension does not modify the behavior of normal paste.

License

MIT

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