Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>LabLockNew to Visual Studio Code? Get it now.
LabLock

LabLock

Aryan Pandey

|
1 install
| (0) | Free
LabLock is a VS Code extension designed for controlled programming labs and coding assessments. It provides a secure lab mode with password-protected access, built-in calculator and notepad, paste control, protected session exit, and teacher-controlled password management. It is designed to keep stu
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LabLock 🔒

LabLock is a security-focused VS Code extension designed for controlled programming labs, coding assessments, practical examinations, and supervised coding sessions.

It provides a focused coding environment with Lab Mode, password protection, paste control, built-in calculator, built-in notepad, session timer, and teacher-controlled access.

Important: LabLock is designed to provide strong practical restrictions inside VS Code. A normal VS Code extension cannot completely control the operating system or prevent actions such as using another device, Task Manager, or terminating VS Code externally.


✨ Features

🔒 Lab Mode

LabLock provides a dedicated Lab Mode for controlled programming sessions.

When Lab Mode is active:

  • Paste restrictions are enabled.
  • Protected actions require authentication.
  • Lab status is displayed in the VS Code status bar.
  • Optional session timer can be enabled.
  • Students can use the built-in calculator and notepad without leaving VS Code.

🚫 Paste Lock

When Lab Mode is active, LabLock can intercept supported VS Code paste actions.

Supported keyboard shortcuts include:

  • Ctrl + V — Windows/Linux
  • Cmd + V — macOS

When Lab Mode is inactive, normal paste functionality is restored.

LabLock uses the official VS Code Extension API and does not modify the operating system clipboard.


🧮 Built-in Calculator

LabLock includes an integrated calculator so students do not need to leave VS Code for basic calculations.

Supported operations include:

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Decimals
  • Parentheses
  • Percentage
  • Clear
  • Backspace
  • Square root
  • Powers
  • Scientific functions, where supported

The calculator does not use JavaScript eval() for expression execution.


📝 Built-in Notepad

A built-in notepad allows students to write temporary notes while working.

Useful for:

  • Logic planning
  • Algorithm ideas
  • Temporary calculations
  • Problem-solving notes
  • Important reminders

The notepad operates inside VS Code instead of opening an external application.


🔐 Password Protection

LabLock uses password authentication for protected actions.

The password is stored using VS Code's:

SecretStorage API

Passwords are not intentionally stored in:

  • package.json
  • settings.json
  • Source code
  • Console logs
  • Status bar
  • Error messages

There is no default password such as 1234.


🔑 Password Management

LabLock supports:

  • Initial password setup
  • Password verification
  • Password change
  • Owner/teacher recovery

Changing the password requires verification of the existing password.

Current Password
       ↓
Verify
       ↓
New Password
       ↓
Confirm
       ↓
Password Updated
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft