Skip to main content

Module Clipboard

Expand description

Wire methods: clipboard operations via nativeHost:*Clipboard*. Backed by arboard for cross-platform text clipboard access. Binary clipboard (readClipboardBuffer, writeClipboardBuffer) returns empty/null - binary clipboard is rarely used by VS Code core.

Functions§

NativeHasClipboard
NativeReadClipboardBuffer
NativeReadClipboardFindText
macOS has a separate find pasteboard; reuse the general clipboard for parity with VS Code on Linux/Windows.
NativeReadClipboardText
NativeReadImage
Read an image from the clipboard. Binary clipboard is not yet implemented - return an empty array so callers get a safe fallback.
NativeTriggerPaste
Trigger a paste operation. On Tauri 2.x there is no direct paste API; return false so callers fall through to the OS’s native paste shortcut.
NativeWriteClipboardBuffer
NativeWriteClipboardFindText
NativeWriteClipboardText