IntelliCode privacy

This article describes privacy information and settings for IntelliCode for Visual Studio and Visual Studio Code.

IntelliCode Whole Line Completions

IntelliCode whole line completions run entirely on the local machine and don't send any code to Microsoft in order to make predictions.

Firewall and proxy settings

For IntelliCode to gain access to web services, network managers will need to add *.intellicode.vsengsaas.visualstudio.com on https/443 to an allowlist. Conversely, adding it to a blocklist will prevent IntelliCode from working in your network.

Additional information can be found at Install and use Visual Studio and Azure Services behind a firewall or proxy server.

IntelliCode API Usage Examples

This feature uses a web service to return real-world usage examples of functions that it has found on public GitHub repos. The feature maintains a local list of function names for which it has examples, based solely on scanning public GitHub repositories. It maintains that list on your local machine by downloading it from a web service. When you use API Usage Examples, it will check which function calls in your code appear on the list of standard and third party library calls known by the feature. This check is performed locally so none of your code leaves the machine. Finally, we retrieve examples from the web service for only those standard and third party library calls that were found to be present. As a result this feature will never send any of your code over the internet.

IntelliCode Team completion models

Certain IntelliCode features require access to web services to obtain model files, or to submit code metadata to train new custom models for your own code. The IntelliCode web services don't keep a copy of your custom model once it has been delivered to your instance of Visual Studio. If your instance of Visual Studio never collects a custom model that it sent up for training, we automatically delete it from our services 29 days after the model is produced.

Additional information can be seen in the Custom Models Data and Privacy section.

Data residency

When you train team completion models for your code, the code metadata you submit may leave your geography. It will be processed by IntelliCode services located in the United States of America.

Corporate controls over Team completion model training

Team completion model training and acquisition can be disabled by corporate policy across all the machines that run Visual Studio in your organization, via registry keys.

Global policy:

  • Path: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\IntelliCode
  • Key: DisableRemoteAnalysis
  • Key type: DWORD (32-bit)
  • A value of 1 indicates opt-out

Local policy:

  • Path: HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSCommon\16.0\IntelliCode or HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSCommon\17.0\IntelliCode
  • Key: DisableRemoteAnalysis
  • Key type: DWORD (32-bit)
  • A value of 1 indicates opt-out