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

Paste Go

cointem

|
5 installs
| (0) | Free
Smart paste for VS Code: convert JSON/SQL/code or text into typed structures with local parsing + AI fallback.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Paste Go

Paste Go — Smart paste for VS Code with local parsing and AI fallback.


Features

  • Fast local parsing for JSON, SQL CREATE TABLE, Go structs, and simple code snippets.
  • AI fallback (OpenAI/Gemini). The openai format works with OpenAI-compatible services (DeepSeek / GLM / Moonshot / Proxy).
  • Multi-language output: Go, TypeScript, Python, Java, Rust, C#, Kotlin, Swift, PHP, Ruby, Dart, C/C++, Scala.

Quick Start

  1. Copy a JSON/SQL/code snippet or a natural language description to clipboard.
  2. Open a code file in the target language.
  3. Press Ctrl+Alt+V (Windows/Linux) or Cmd+Alt+V (macOS) to paste generated code.

Demo

Example: copy the JSON below, then paste into types.go to generate a Go struct.

{
  "id": 123,
  "name": "Alice",
  "items": [{ "sku": "A1", "qty": 2 }]
}

Configuration

Method 1: GUI Settings

Open File > Preferences > Settings → search Paste Go → select the API format and enter your key.

Method 2: settings.json

{
  // ===== OpenAI API format (compatible with OpenAI-style services) =====
  "pasteGo.aiApiFormat": "openai",
  "pasteGo.aiApiKey": "sk-xxxx",
  "pasteGo.aiBaseUrl": "https://api.deepseek.com/v1",
  "pasteGo.aiModel": "deepseek-chat",

  // ===== Gemini =====
  // "pasteGo.aiApiFormat": "gemini",
  // "pasteGo.aiApiKey": "your-gemini-key",
  // "pasteGo.aiModel": "gemini-1.5-flash",

}

Config Fields

  • pasteGo.aiApiFormat — gemini / openai.
  • pasteGo.aiApiKey — API key for AI fallback.
  • pasteGo.aiBaseUrl — Base URL for OpenAI-format services (not needed for Gemini).
  • pasteGo.aiModel — Specific model name (leave empty for default).

Privacy & Data

Local parsing happens entirely offline by the bundled binary. AI fallback will send the minimal required prompt to your configured AI provider — never send API keys or sensitive data in public.

Contributing

Contributions are welcome. See the repository: cointem/paste-go

License

MIT — see LICENSE file.

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