Visual Studio 2017 High Input CPU (CodeLens)

I am using Visual Studio Professional 2017 15.2 (26430.14) and my CPU is 40-60% on my PC every time I write code. This is indeed the case as it creates a delay for each character input. Sometimes a few seconds. I have to say that my computer is not the most productive, but I have an SSD and 16 GB of RAM.

I have Resharper and NCrunch installed, but I tried to disable them, but without any results.

Process that splashes the processor:

  • devenv.exe

And also sometimes:

  • ServiceHub.RoslynCodeAnalysisService32.exe
+3


source to share


1 answer


The cause of my problem was something called CodeLens ( https://msdn.microsoft.com/library/dn269218.aspx ). It is some kind of real-time analysis of the code giving you links and usage directly inside the code. I think it was a little tricky on my weak machine.

When I disabled this feature, my lag disappeared instantly. You can turn it off here:



  • Parameters
    • Text editor
      • All languages
        • CodeLens
+5


source







All Articles