turn automatic tuning on in visual studio 2019 code example
Example 1: how to get maximum peformance form visual stdio 2019
Use a 64-bit OS
Disable automatic file restore
Configure debugging options
Disable tools and extensions
Force a garbage collection
Example 2: disable codelens visual studio 2019
To disable CodeLens, choose Tools > Options > Text Editor > All Languages > CodeLens, and deselect the feature