Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Rashid Secret Blur — Hide API Keys While RecordingNew to Visual Studio Code? Get it now.
Rashid Secret Blur — Hide API Keys While Recording

Rashid Secret Blur — Hide API Keys While Recording

Rashid Farhad

|
4 installs
| (0) | Free
Blurs API keys, tokens, passwords and .env values in the editor, so you can screen-record, stream or share your screen without leaking secrets.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rashid Secret Blur

Record, stream or share your screen without leaking your API keys.

Secret Blur hides secrets in the editor as you type: .env values, API keys, tokens and passwords are blurred (or covered with a bar) while the code around them stays readable. Your files are never changed. Only how they look on screen.

What gets hidden

  • Every value in .env files: .env, .env.local, .env.production and so on. Keys stay visible, values are hidden.
  • Known key formats, in any file: OpenAI and Anthropic keys, GitHub tokens, AWS access keys, Stripe secret keys, Google API keys, Slack tokens, Telegram bot tokens, SendGrid keys, JWTs and private key blocks.
  • Passwords in URLs: the p4ss in mongodb://user:p4ss@host.
  • Secret-looking assignments: values given to names like apiKey, secret, token, password or client_secret. Variable references like password = userInput or process.env.KEY are left alone.
  • Your own patterns via customPatterns.

Turning it on and off

Click the eye in the status bar, or run Secret Blur: Toggle Hiding Secrets from the Command Palette. When secrets are visible, the status bar item turns yellow so you don't forget before you hit record.

Settings

Setting Default Description
rashidSecretBlur.enabled true Hide secrets.
rashidSecretBlur.style "blur" blur or block (a solid bar).
rashidSecretBlur.envFiles true Hide every value in .env files.
rashidSecretBlur.knownKeys true Hide known key formats anywhere.
rashidSecretBlur.assignments true Hide values of secret-sounding names.
rashidSecretBlur.customPatterns [] Extra regular expressions. With a capture group, only the group is hidden.

Example custom pattern that hides Iraqi mobile numbers:

"rashidSecretBlur.customPatterns": ["\\b07[5-9]\\d[ -]?\\d{3}[ -]?\\d{4}\\b"]

Good to know

Secret Blur hides text in the editor only. Hovers, the terminal, search results and other panels still show the real text, so keep those closed while recording. Always double-check before you publish.

Made by Rashid Farhad.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft