For Visual Studio 2022 and the latest version of Visual Studio 2019:
- From the help menu, select Privacy > Privacy Settings
- In the Visual Studio Experience Improvement Program dialog, select No, I would not like to participate.
Note: You can’t opt out in pre-release versions by this mechanism.
For older versions of Visual Studio
- From the help menu, select Send Feedback > Settings.
- In the Visual Studio Experience Improvement Program dialog, select No, I would not like to participate.
See Visual Studio Customer Experience Improvement Program for the official Microsoft instructions.
This change writes to the registry. See then next answer for fixing directly in the registry.