Open files in VS Code and Cursor / Binary, network and hardware

Open a PCAP file in VS Code

VS Code cannot read packet captures by itself. Install the free PCAP Viewer by Zovo and click the .pcap, .pcapng or .pcap.gz file. It opens like a packet analyzer: a packet list, a protocol tree, a hex pane linked to the tree, Wireshark-style display filters and follow TCP stream. It reads the file itself, so you do not need Wireshark, tshark or sharkd.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)JetBrains IDEs

Free, MIT license. Extension ID zovo.zovo-pcap-viewer, version 0.2.2. Needs VS Code 1.90.0 or newer.

This guide is also in Deutsch, Español, Français, Italiano, 日本語, Polski, Português (Brasil), 简体中文.

http.pcap open in PCAP Viewer in VS Code, with packet 4 selected, the protocol tree below it and the Host header bytes lit in the hex pane
http.pcap open in PCAP Viewer in VS Code, with packet 4 selected, the protocol tree below it and the Host header bytes lit in the hex pane.

Steps in VS Code

  1. Install PCAP Viewer from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.zovo-pcap-viewer.
  2. Click a .pcap, .pcapng, .pcap.gz or .pcapng.gz file. For .cap files, right-click and pick "Open in PCAP Viewer".
  3. Type a filter such as tcp.port == 443 && ip.addr == 10.0.0.1 and press Enter.
  4. Click a field in the tree to light up its bytes, or click a byte to find its field.
  5. Double-click a packet to follow its TCP or UDP stream. Open Statistics for conversations and endpoints.

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.zovo-pcap-viewer and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/zovo-pcap-viewer.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What PCAP Viewer handles

What it does not do

In JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, CLion and others)

Other options

Install counts and Open VSX status were checked on 9 November 2026. Descriptions in quotes are the extensions' own.

Questions

Do I need Wireshark installed?

No. PCAP Viewer reads pcap and pcapng in JavaScript inside VS Code. Nothing else is installed or started.

Does opening a capture send DNS queries?

No. Names come only from DNS answers and name blocks inside the capture. The extension makes no network requests and has no telemetry.

Can it open a damaged capture?

Yes. It shows every packet before the damage and a message that says what is wrong and at which byte.

More about PCAP Viewer

Read the PCAP Viewer page for every feature and setting, or the source code on GitHub.

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.