Cleanss
How it worksFeaturesPricing
Buy nowDownload
Cleanss© 2026
DownloadFeaturesBlogFree toolsChangelogPrivacyTermsContact
← All posts

November 22, 2026 · 5 min read

Screenshot, annotate and blur in VS Code without leaking tokens

How to capture just the VS Code window, point at the error with arrows and numbered steps, and blur the .env file, terminal token or repo name before it ships.

By Cleanss team

Fri 9:41
$48.2k
3,904
12.6%
⇧⌘1
1536 × 1050
$48.2k
3,904
12.6%
CopyEdit

You screenshot VS Code for three reasons: an error nobody else can reproduce, a diff you want a second pair of eyes on, and terminal output that proves something ran. The standard GitHub bug-report template asks for it outright, with a Screenshots section that says "If applicable, add screenshots to help explain your problem" (bug-report.md template).

For the full pre-share checklist, see How to share a screenshot without leaking anything.

An editor window shows far more than the thing you are pointing at. Here is what leaks from a VS Code capture and how to capture, annotate and blur it in Cleanss before it goes anywhere.

What people screenshot in VS Code

  • Errors. A red squiggle or the Problems panel.
  • Diffs. The Source Control view or a side-by-side diff, which also shows the branch name and every other changed file.
  • The terminal panel. The command, its output and the scrollback above it.

What leaks

Config and .env files. They sit in the Explorer sidebar, and often in an open tab next to the file you are showing. Guardsquare lists screenshotting a config file among the ordinary ways API keys leak by accident (Guardsquare).

Tokens in the integrated terminal. An export from twenty lines up, a curl with an Authorization header, or a CLI login that echoed the key. Resend's leaked-key guidance names a key pasted into a screenshot as a common source and says to revoke before anything else (Resend).

Repo names, paths and branches. The title bar, the status bar and the Explorer header all carry project names. That is the kind of detail behind the September 2026 PixelLeak story: more than 13,000 screenshots from 343 organisations pushed to public GitHub repos by coding agents, internal dashboards and unreleased product details included (The Register).

The edges. Tab titles, notification banners and autocomplete dropdowns are where leaks usually sit, because that is where you were not looking (algenius).

One rule before the steps below: if a live key was on screen, treat it as compromised. Tavily's order is revoke, regenerate, then update env files and secrets (Tavily). Blurring is for the screenshot; rotation is for the key.

Capture just the editor window

Capture the window, not the screen.

  1. Close or clear the panels you do not need. If the terminal scrollback contains a token, clear it and re-run only the command you want to show. Run Terminal: Clear from the Command Palette, or press ⌘K on Mac with the terminal focused, which VS Code honours as the usual terminal clear-screen shortcut (VS Code docs).
  2. Open the Cleanss editor from the menu bar icon, click Window capture at the top and pick the VS Code window from the list. It is captured on its own, at full native resolution.
  3. For just one panel, press ⇧⌘1 on Mac and drag a region instead.
  4. A thumbnail appears in the corner. Choose Edit.

GitHub's docs team tells writers to provide commands as text rather than screenshot a command-line interface (GitHub Docs), and ShareX's bug-report guide says to preserve the exact error text separately (ShareX). So paste the error as text too; the screenshot shows where it happened.

Annotate with arrows and numbered steps

TechSmith's bug-report guide recommends arrows, callouts and blurs so the reader can focus on what reproduces the bug (TechSmith). In the Cleanss editor:

  1. Press A for Arrow and drag from empty space to the line with the error. Drag either end to adjust it later.
  2. Press R for Box to outline the failing block, or H for Highlight.
  3. Press N for Numbered steps and click in the order you want the reader to follow: 1 the command, 2 the error, 3 the line it points to.

Keep it to one or two marks. Screenhance's rule for documentation is one arrow per screenshot; if you need three, you probably need three screenshots (Screenhance).

Run the scan

Cleanss's sensitive-info scan reads the screenshot on your Mac or PC, nothing is uploaded, and finds emails, card numbers, passwords, API keys and tokens (Stripe, OpenAI-style, GitHub, AWS, Slack, Google, JWTs), secret lines in .env files such as API_KEY=..., IPv4 addresses and long random-looking strings. Each one is outlined; Blur all covers them in one click. A setting runs it on every capture.

Repo names, paths, branches and hostnames are not on that list, and small or low-contrast text can be missed, so look yourself and blur by hand: press B for Blur or P for Pixelate, drag over the title bar or status bar, and raise the strength until nothing is readable. Blurs stay locked to the screenshot, so re-cropping never uncovers them.

For a live credential, blur is a drawing tool, not a guarantee: pixelated text has been reconstructed with public tools, and Bishop Fox recommends solid bars over the whole string (Bishop Fox). Replace the value before you capture, rotate it after, and read why blurring is not redacting for the rest.

Export

Press ⌘C to copy or ⌘S to save a PNG, both at full native resolution. If it is going into GitHub, write alt text of 40 to 150 characters that starts with "Screenshot of", which is the GitHub docs team's own rule (GitHub Docs style guide).

For PR screenshots, follow the PixelLeak checklist; for what other tools detect automatically, see how to hide API keys in screenshots.

FAQ

How do I take a screenshot of just the VS Code window on Mac?

Without extra software, press ⇧⌘4, then Space, and click the window; hold Option while clicking to leave out the shadow (Apple Support). In Cleanss, open the editor from the menu bar icon, click Window capture and pick VS Code from the list; it comes without the macOS shadow.

Is it safe to screenshot the VS Code terminal?

Only after you have checked the scrollback. Tokens from earlier commands are the usual leak. Clear the terminal, re-run the one command you want to show, then capture, and run the scan before you export.

Can I screenshot a diff without showing the repo name?

Yes. Capture the window, then blur the title bar and status bar by hand; an automatic scan does not recognise project names. If the diff contains a key, replace it with a dummy before capturing.

You can download Cleanss for Mac and Windows.

liked this? try it yourself

Take better screenshots with Cleanss

Download app

Related posts

  • How to share a screenshot without leaking anything: a 6-step checklistNovember 15, 2026
  • Redact customer data from support screenshots before they enter the ticketNovember 22, 2026
  • Screenshot Terminal and iTerm output without leaking tokensNovember 22, 2026