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

DevContainers Terminal Image Paste

touyu

|
20 installs
| (0) | Free
Paste images from clipboard to DevContainer workspace when using terminal
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DevContainers Terminal Image Paste

VS Code extension that saves clipboard images to DevContainer workspaces and provides the file path in the terminal.

Features

  • Image Paste in Terminal: Press Cmd+V in a DevContainer terminal to automatically save clipboard images to your workspace
  • Smart Detection: Automatically detects images in clipboard and falls back to normal paste for text
  • Customizable: Configure save location and filename patterns
  • File Path Insertion: Automatically inserts the saved image path into your terminal

Requirements

  • VS Code 1.74.0 or higher
  • macOS (currently only supports macOS due to AppleScript dependency)
  • Active DevContainer or remote connection

Installation

Install from the VS Code Marketplace or manually:

# Clone the repository
git clone https://github.com/touyu/devcontainers-terminal-image-paste.git

# Install dependencies
npm install

# Package the extension
npm run package

# Install the VSIX file in VS Code
code --install-extension devcontainers-terminal-image-paste-0.0.1.vsix

Usage

  1. Open a terminal in your DevContainer
  2. Copy an image to your clipboard (screenshot, file copy, etc.)
  3. Focus the terminal and press Cmd+V
  4. The image will be saved to your workspace and the file path inserted

Extension Settings

Configure the extension through VS Code settings:

  • devcontainersTerminalImagePaste.enabled: Enable/disable the extension (default: true)
  • devcontainersTerminalImagePaste.saveDir: Directory to save images relative to workspace root (default: "images")
  • devcontainersTerminalImagePaste.fileNamePattern: Filename pattern for saved images (default: "clipboard-{timestamp}.png")
    • {timestamp} will be replaced with current date/time

Example Configuration

{
  "devcontainersTerminalImagePaste.enabled": true,
  "devcontainersTerminalImagePaste.saveDir": "./tmp",
  "devcontainersTerminalImagePaste.fileNamePattern": "clipboard-{timestamp}.png"
}

Supported Image Formats

  • PNG
  • JPG/JPEG
  • GIF
  • BMP
  • TIFF
  • WebP

Known Issues

  • Currently only supports macOS
  • Requires DevContainer or remote connection to activate

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This extension is licensed under the MIT License.

Author

Yuto Akiba (@touyu)

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