VS Code Telemetry and Data Collection Explained

Visual Studio Code (VS Code) collects telemetry and usage data by default to help Microsoft understand how users interact with the editor, diagnose system issues, and improve the software’s overall performance. This article explains what specific data VS Code collects, how Microsoft uses this information, and provides a straightforward guide on how you can customize or completely disable these data collection settings to protect your privacy.

What Data Does VS Code Collect?

By default, VS Code is configured to send telemetry data to Microsoft. This data falls into three main categories:

Microsoft anonymizes this data and uses it to identify common bugs, prioritize feature development, and optimize the editor’s performance. VS Code does not actively collect personal information, such as your source code, file paths, or passwords, though accidental inclusion in crash dumps can occasionally occur, which Microsoft attempts to scrub.

How to Disable Telemetry in VS Code

If you prefer not to share your usage data, you can easily disable telemetry directly within the application settings.

Step 1: Open the Settings Menu

Press Ctrl + , (Windows/Linux) or Cmd + , (macOS) to open the Settings tab. Alternatively, click the gear icon in the bottom-left corner of the window and select Settings.

Step 2: Search for Telemetry Settings

In the search bar at the top of the Settings tab, type telemetry.

Step 3: Modify the Telemetry Level

Locate the setting labeled Telemetry: Telemetry Level. By default, this is set to all. Click the dropdown menu and select your preferred level of data sharing:

Setting this option to off stops VS Code from sending any diagnostic or usage data to Microsoft.

Third-Party Extension Telemetry

It is important to note that many third-party extensions installed from the VS Code Marketplace collect their own telemetry data.

While VS Code attempts to communicate your telemetry preferences to installed extensions, some extensions may not respect the global telemetry.telemetryLevel setting. To ensure complete privacy, you may need to check the individual settings of your installed extensions and disable their telemetry options manually if they provide them.