Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk2 min

How to Open and Preview CSV Files in VS Code

Open a CSV from VS Code Explorer, learn why preview tabs get reused, and choose between raw editor viewing and Data Wrangler.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Open the folder containing your CSV in VS Code, then select the file in Explorer. A single click opens it in a preview tab; double-click the file or edit it to keep it in a dedicated tab. For a data-oriented view, right-click the file and choose Open in Data Wrangler.

Open a CSV from VS Code Explorer

  1. Open the folder that contains the CSV in VS Code. If you are already in a terminal at that folder, run code .. To open a specific file, pass its path to code; paths can be absolute or relative to the terminal’s current directory. See Microsoft’s VS Code CLI guide.

  2. In Explorer, single-click the CSV to inspect it in the editor. This opens a preview tab, which VS Code reuses when you preview another file. Its tab title appears in italics. Microsoft explains this behavior in its user interface documentation.

  3. To keep the CSV in its own tab, double-click it in Explorer or edit the file. You can also control preview behavior with the workbench.editor.enablePreview and workbench.editor.enablePreviewFromQuickOpen settings.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why does my CSV replace the tab I already opened?

The first file was opened in preview mode. Preview tabs are temporary: selecting another file for preview reuses the same tab. An italic tab title indicates preview mode. Double-click the file or edit it to give it a dedicated tab instead.

Open a CSV in a data-oriented view

If you want a workflow designed for working with tabular data rather than simply viewing the CSV as editor text, right-click the local file in Explorer and choose Open in Data Wrangler. Microsoft’s Data Wrangler documentation lists CSV and TSV as directly supported file types. Delimiter or sheet choices may depend on the file type.

Use the VS Code command-line launcher

The CLI can open a folder or file from a terminal. On macOS, if the code command is not available, Microsoft’s CLI guide describes adding it to PATH with Shell Command: Install ‘code’ command. The command-line guide covers the supported usage and path options: Command Line Interface (CLI) — Visual Studio Code.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choosing an extension for CSV work

Start with the built-in preview for a quick look at raw CSV text. Use Data Wrangler when you want a data-oriented workflow. If you consider another extension, open the Extensions view and inspect its Marketplace entry before installing it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.