Exact Paste
Precise clipboard insertion with granular undo, adjustable speed and resumable sessions. Free, MIT-licensed, offline, no telemetry. By Darkness_vn (darkness2207).
Getting started (English)
- Copy text or code, place a single cursor in an editable VS Code document, then click the Exact Paste Play button in the editor toolbar.
- Use the adjacent dropdown to choose the default insertion mode (line, word/symbol group or Unicode code point) and delay (0–2000 ms per step). Line endings follow the target document. Each insertion has explicit undo boundaries; this is an editing convenience, not evidence of authorship.
- Pause or stop and retain the remaining text. Return to the original document and click Resume; it uses the saved buffer, not a new clipboard copy.
- Choose Language to switch English/Vietnamese. The first activation offers a choice and opens a read-only guide; Getting Started opens it again. Native Settings descriptions are bilingual because they are static VS Code contributions.
Controls and recovery
- Play / Pause / Resume: one toolbar button. Resume always uses the retained session, even after copying a screenshot or new text.
- Stop & Keep Remaining: available only while inserting. Pause already retains the session.
- Start New Insertion: validates new clipboard text and the editable target, then asks before replacing the previous session. Empty/image-only clipboard or a failed validation leaves the old session intact.
- Restore Saved Session: shows the saved file URI and progress. Choose Open Original & Resume to open the saved file and verify its contents before inserting. If the file changed, use the recovery choices instead; nothing is automatically overwritten.
- Session Storage: Save to Disk (Recommended) survives a normal restart in the same workspace if the file matches; RAM Only is lost when the extension host exits. Save the document yourself.
- Keyboard Shortcuts: default
Ctrl+Alt+Shift+P toggles start/pause/resume; Ctrl+Alt+Shift+S stops while inserting. On macOS use Cmd instead of Ctrl. Search Exact Paste in VS Code Keyboard Shortcuts to customize the shared command IDs (without .en or .vi). Conflicts may require rebinding.
- Preview is a text-only snapshot; reopen to refresh. An image-only clipboard is not an insertion source. Existing insertion buffers remain independent.
Support & Feedback
GitHub · Report an issue · Email the developer
The active storage, language and insertion mode are marked with a check. Start reads the current clipboard; Resume uses the retained buffer. After a RAM-only restart, Play starts a new insertion. Please do not include private code, clipboard contents or secrets in reports.
Two independent stores — do not confuse them
| Command |
System clipboard (Windows Ctrl+C / Win+V) |
Exact Paste insertion buffer |
Already inserted editor text |
| Preview Clipboard |
Shows a read-only snapshot of current text (not Win+V history) |
Unchanged |
Unchanged |
| Clear Clipboard & History |
Clears current system clipboard and attempts to clear all accessible Windows history, including individually deleting remaining items |
Unchanged |
Unchanged |
| Copy Remaining Text |
Replaces current clipboard text with remaining buffer |
Retained |
Unchanged |
| Cancel & Clear Buffer |
Unchanged |
Cancels session and deletes its locally saved checkpoint |
Unchanged |
| Pause / Stop & Keep Remaining |
Unchanged |
Retained for Resume |
Unchanged |
| Resume |
Not read |
Continues saved text |
Adds remaining text at verified offset |
Clear Clipboard & History asks for confirmation. On Windows it calls a fixed PowerShell command using Windows clipboard APIs (no elevation or execution-policy bypass). Windows can deny history access or retain pinned entries; a partial-clear warning means check Win+V manually. No guarantee of clearing cloud-synced copies, third-party managers or all pinned entries. On other desktop platforms it clears current text only. Preview is capped at 200,000 UTF-16 units and never executes clipboard content. It opens a read-only panel beside the editor.
Local recovery and privacy
By default unfinished text is stored in plaintext in VS Code workspace storage, with target URI, offset, step count and document hash. It is checkpointed approximately every 500 ms and when paused/stopped or cleanly deactivated. Save the target yourself: this extension does not save documents automatically. On restart in the same workspace/window storage, Resume requires the exact document contents and URI; it never auto-inserts. If a crash, unsaved file, or edit causes a mismatch, Resume is blocked. Copy Remaining may offer a warning about overlap; manually check before pasting. Untitled files may not be recoverable. Session Storage can disable disk persistence. Completion or Cancel & Clear Buffer removes the logical checkpoint, not a forensic secure erase. No automatic network calls, telemetry or account needed. Support links open your browser or mail app only when requested. See PRIVACY.md.
Limits: 500,000 UTF-16 units, 20,000 insertion steps; desktop VS Code 1.75+ (real-host compatibility still to be tested). Normalization changes line endings to the target EOL. Undo mode controls grouping, not physical keystrokes. Other extensions may modify the document; Exact Paste stops rather than automatically undoing.
Developed for fun by Darkness from Vietnam, hoping for your support (or maybe not :v).
Hướng dẫn sử dụng (Tiếng Việt)
- Sao chép văn bản hoặc code, đặt một con trỏ trong tài liệu có thể chỉnh sửa rồi nhấn Play của Exact Paste.
- Menu mũi tên cho phép chọn chế độ theo dòng, cụm từ/nhóm ký hiệu hoặc điểm mã Unicode và tốc độ 0–2000 ms/bước. Xuống dòng chuẩn hóa theo tài liệu đích.
- Tạm dừng hoặc dừng và giữ phần còn lại; về tài liệu gốc rồi nhấn Tiếp tục. Extension dùng nội dung đã giữ, không đọc clipboard mới.
- Chọn Ngôn ngữ để đổi English/Tiếng Việt; lần kích hoạt đầu có lựa chọn và trang hướng dẫn. Mục Hướng dẫn sử dụng mở lại trang này. Các mô tả trong Settings gốc của VS Code là song ngữ cố định.
Điều khiển và khôi phục
- Play / Tạm dừng / Tiếp tục: cùng một nút. Tiếp tục luôn dùng tiến trình đã giữ, kể cả khi sao chép ảnh màn hình hoặc văn bản mới.
- Dừng và giữ phần còn lại: chỉ xuất hiện khi đang chèn. Tạm dừng đã giữ tiến trình.
- Bắt đầu lượt chèn mới: kiểm tra văn bản clipboard và tài liệu có thể chỉnh sửa, sau đó xác nhận thay tiến trình cũ. Clipboard trống/chỉ có ảnh hoặc kiểm tra thất bại sẽ không làm mất tiến trình cũ.
- Khôi phục tiến trình: hiện URI file và phần trăm. Chọn Mở file gốc và tiếp tục để kiểm tra tài liệu trước khi chèn. Nếu tài liệu đã đổi, sử dụng các lựa chọn khôi phục; không tự ghi đè.
- Vị trí lưu: Lưu trên ổ đĩa (khuyến nghị) cho phép khôi phục sau khi khởi động lại bình thường trong cùng workspace nếu file khớp; Chỉ lưu trong RAM sẽ mất khi Extension Host thoát. Hãy tự lưu file.
- Phím tắt: mặc định
Ctrl+Alt+Shift+P để bắt đầu/tạm dừng/tiếp tục; Ctrl+Alt+Shift+S để dừng khi đang chèn. macOS dùng Cmd thay Ctrl. Tìm Exact Paste trong Keyboard Shortcuts để gán lại các lệnh chung không có hậu tố .en hoặc .vi. Nếu trùng phím, hãy đổi tổ hợp.
- Xem trước chỉ là bản chụp văn bản tại thời điểm mở; mở lại để cập nhật. Clipboard chỉ có ảnh không phải nguồn chèn văn bản. Bộ nhớ chèn hiện có vẫn độc lập.
Hỗ trợ và góp ý
GitHub · Báo lỗi · Gửi email
Dấu tick cho biết chế độ lưu, ngôn ngữ và chế độ chèn đang áp dụng. Bắt đầu đọc clipboard mới; Tiếp tục dùng bộ nhớ đã giữ. Sau khi thoát VS Code ở chế độ RAM, Play bắt đầu lượt mới. Không gửi mã nguồn riêng tư, clipboard hay bí mật trong báo lỗi.
Hai bộ nhớ riêng biệt
| Lệnh |
Clipboard hệ thống (Ctrl+C / Win+V) |
Bộ nhớ chèn Exact Paste |
Code đã chèn |
| Xem trước clipboard |
Xem văn bản hiện tại (không phải lịch sử Win+V) |
Giữ nguyên |
Giữ nguyên |
| Xóa clipboard và lịch sử |
Xóa nội dung hiện tại, cố gắng xóa lịch sử Windows có thể truy cập, kể cả xóa từng mục còn lại |
Giữ nguyên |
Giữ nguyên |
| Sao chép phần chưa chèn |
Thay clipboard hiện tại bằng phần còn lại |
Giữ nguyên |
Giữ nguyên |
| Hủy và xóa bộ nhớ chèn |
Giữ nguyên |
Hủy tiến trình và xóa bản lưu cục bộ |
Giữ nguyên |
| Tạm dừng / Dừng và giữ phần còn lại |
Giữ nguyên |
Giữ lại để tiếp tục |
Giữ nguyên |
| Tiếp tục |
Không đọc lại |
Tiếp tục nội dung đã lưu |
Chèn phần còn lại vào vị trí đã xác minh |
Xóa clipboard và lịch sử cần xác nhận. Windows có thể từ chối API hoặc giữ mục đã ghim; nếu có cảnh báo chưa xóa hết thì kiểm tra Win+V và xóa thủ công. Không cam kết xóa bản đồng bộ cloud, trình quản lý clipboard bên thứ ba hoặc mọi mục ghim. Nền tảng khác chỉ xóa văn bản clipboard hiện tại. Xem trước chỉ hiển thị tối đa 200.000 đơn vị UTF-16, không thực thi code.
Lưu tiến trình và quyền riêng tư
Mặc định lưu phần văn bản chưa chèn dạng thuần vào vùng lưu cục bộ workspace của VS Code, kèm URI, vị trí, số bước và hash tài liệu. Ghi khoảng mỗi 500 ms, khi dừng/tạm dừng và khi extension kết thúc bình thường. Hãy tự lưu tài liệu. Khi mở lại cùng vùng lưu workspace/cửa sổ, chỉ tiếp tục nếu URI và nội dung tài liệu khớp; không tự chèn. Nếu crash, file chưa lưu hoặc tài liệu đã đổi, Resume bị chặn; khi sao chép phần còn lại đã lưu cần kiểm tra có trùng không. File Untitled có thể không khôi phục được. Có thể tắt lưu đĩa trong Lưu tiến trình. Hoàn tất hoặc hủy sẽ xóa bản lưu logic, không phải xóa dữ liệu pháp y. Không tự gửi mạng, không tài khoản, không telemetry. Liên kết hỗ trợ chỉ mở trình duyệt hoặc email khi bạn chọn. Xem PRIVACY.md.
Giới hạn: 500.000 đơn vị UTF-16, 20.000 bước. Chỉ hỗ trợ VS Code desktop; phiên bản tối thiểu khai báo 1.75, cần QA thực tế. Lịch sử Undo là tiện ích chỉnh sửa, không chứng minh tác giả. MIT: được dùng, sửa và phân phối theo điều kiện giấy phép.
Mình đến từ Thăng Long University ,cảm ơn vì đã ghé thăm (^.^)