ShotBox

How to take a screenshot in VS Code

VS Code is a normal desktop window, so use your system's screenshot shortcut: Win+Shift+S on Windows, Cmd+Shift+4 on Mac, or Print Screen on Linux. Then paste the image into a chat, an issue or an editor.

Updated 2026-11-27 ยท by the ShotBox team at Fullstack Partner

VS Code does not need a special tool for screenshots. Whatever your operating system uses for any other window works here too. The only extra care is what is on screen, because code editors often show things you do not want to share.

Windows

  1. Press Win+Shift+S to open the snipping bar.
  2. Choose rectangle, window or full screen.
  3. Select the part of VS Code you want. The image goes to your clipboard.
  4. Paste it with Ctrl+V where you need it.

Pressing Print Screen captures the whole screen. Alt+Print Screen captures only the active window, which is handy when VS Code is not full screen.

Mac

Linux

On GNOME and many other desktops, Print Screen opens the capture tool. Shift+Print Screen usually lets you select an area. On KDE, Spectacle opens with Print Screen. Exact keys vary by distribution, so check your keyboard settings if nothing happens.

Phone and tablet

There is no official VS Code app for phones. If you open VS Code in a browser (for example a web version or a remote environment), take the screenshot the usual way: on Android press Power + Volume Down, on iPhone press Side button + Volume Up (or Home + Side on models with a Home button).

Check what is on screen first

Editor screenshots leak more than people expect. Before you share, look for:

If you spot something, hide it. Pixelating works better than a plain box in many cases, because it is obvious that something was removed. If a key was visible even for a moment, treat it as exposed and replace it.

When the point is the text itself, such as an error message, think about copying the text instead. A screenshot cannot be searched or pasted into a terminal.

Share it as a link

You can paste a screenshot into ShotBox in your browser with Ctrl+V. There is nothing to install. The editor has crop, arrow, box, pen, highlighter, text and pixelate blur, so you can point at the bug and hide the token in one go.

Uploading gives you a long random private link that is copied automatically. It is not listed and not indexed. You can set it to expire after 1 hour, 1 day, 7 days or 30 days, or delete it at any time. Camera and GPS data are removed from every image.

ShotBox does not capture the screen with a hotkey, since it is a web app. Take the shot with your system shortcut, then paste it in. You can also embed the image with Markdown, HTML or BBCode codes, which is useful for GitHub issues and documentation.

Does VS Code block screenshots?

No. VS Code itself does not block screenshots. If a video or protected window is open next to it, that content may appear black in the capture. That comes from the other app, and it is a protection you should respect.

Frequently asked questions

What is the shortcut for a screenshot in VS Code?

VS Code uses your system shortcut. On Windows press Win+Shift+S, on Mac press Cmd+Shift+4, and on most Linux desktops press Print Screen.

How do I capture only the VS Code window?

On Windows press Alt+Print Screen. On Mac press Cmd+Shift+4, then Space, then click the VS Code window.

Can I take a screenshot in VS Code on my phone?

There is no official VS Code phone app. If you use it in a mobile browser, take a screenshot with your phone's buttons: Power + Volume Down on Android, Side button + Volume Up on most iPhones.

How do I hide secrets in a VS Code screenshot?

Check for tokens, passwords, paths and server names, then pixelate or cover them in an editor before sharing. ShotBox has a pixelate blur tool for this.

Can I share a VS Code screenshot as a link?

Yes. Paste the image into ShotBox with Ctrl+V and copy the private link it creates. You can make the link expire or delete it later.