Block-My-Pasting is a VS Code extension designed for controlled programming labs and coding sessions. It blocks paste functionality by default and uses PIN-based authentication to unlock it. It also provides secure PIN management, a protected master PIN for resetting or changing the user PIN, failed
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Block-My-Pasting is a VS Code extension designed for controlled programming labs, coding assessments, practical examinations, and supervised coding sessions.
It blocks paste functionality by default and uses PIN-based authentication to control access to pasting. It also provides a separate Master PIN for protected administrative actions such as resetting or changing the User PIN.
Important: Block-My-Pasting is designed to provide practical paste restrictions inside VS Code. A normal VS Code extension cannot completely control the operating system or prevent actions such as uninstalling the extension, using another application, terminating VS Code, or using another device.
✨ Features
🔒 Paste blocked by default
🔓 PIN-protected paste unlocking
🔐 Separate Master PIN for administrative actions
♻️ Master-PIN-protected User PIN reset
🔑 Secure User PIN change
👨🏫 Secure Master PIN change
🛡️ Failed-attempt protection
📊 Live lock/unlock status indicator
🔒 Fail-closed security behavior
💾 Secure PIN storage using VS Code SecretStorage
🚫 No hard-coded default PIN
🧹 Proper resource cleanup
🔒 How It Works
When Block-My-Pasting starts, paste functionality is placed in the blocked state.
VS Code starts
↓
🔒 PASTE BLOCKED
↓
User tries to paste
↓
🚫 Paste is blocked