Lock — Read-Only Lock for VS CodeStop accidentally editing files you shouldn't touch. Lock adds a one-click lock icon to your VS Code status bar. Click it to instantly freeze your editor into read-only mode. Click again to unlock. That's it. The ProblemYou open a config file, a The Solution
Lock puts a lock icon in the bottom-right corner of your editor. One click locks the entire editor into read-only mode — highlighted in yellow so you always know the state you're in. Features
How to Use
You can also run the command manually:
InstallFrom the Marketplace:
Search From .vsix (manual):
Requirements
InspirationThis extension is highly inspired by IntelliJ IDEA. When I switched to IntelliJ IDEA for a new project, I discovered its built-in read-only lock button — a small icon sitting quietly in the status bar that lets you freeze the entire editor with one click. It felt obvious, useful, and something I reached for constantly. Then I went back to VS Code and realized: it doesn't have this. There's no quick toggle, no status bar button, no visual indicator. If you want read-only mode in VS Code, you're digging through settings or relying on OS-level file permissions. That's too much friction for something so simple. So I built Lock — bringing that one feature from IntelliJ IDEA that VS Code was missing. Why "Lock"?Simple name, simple purpose — one click to lock your editor. ContributingFound a bug or have an idea? Open an issue on GitHub. Pull requests are welcome. LicenseMIT — free to use, modify, and distribute. |
