19

How does one turn off grey suggestions in Visual Studio 2022, but keep the table below?

Grey suggestions

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
Dominik Stolarz
  • 187
  • 1
  • 5

2 Answers2

21

Depending on used version of VS 2022 (mine is 17.0.1, not preview), you can go to Tools->Options->IntelliCode and disable Show completions for whole lines of code option enter image description here

Another option can be found in Controlling Whole line completions docs enter image description here

Just use small button near Zoom drop-down in the left bottom corner of main editor

Pavel Anikhouski
  • 21,776
  • 12
  • 51
  • 66
  • 4
    If only there were an all-or-nothing switch in 2022. CodeLens has one. – madreflection Nov 17 '21 at 22:08
  • 2
    Same with me, I would like to have a single switch to turn it off completely. – cskwg Jun 18 '22 at 05:24
  • 1
    +1 For a single point to turn off. Very annoying if you are a long time resharper user and upgrade vs. You never quite know where vs ends and r# begins. If you are already using a professional grade analysis tool vs should at least ask you if you want to watch the two fight each other. – Vman Feb 28 '23 at 19:51
4

You can disable that "IntelliCode Code Completions" feature in Visual Studio 2022 by going to Tools ==> Options ==> Preview Features and uncheck Enable all IntelliCode preview features

enter image description here

See: Visual Studio IntelliCode Whole line completions

See also: https://visualstudio.microsoft.com/services/intellicode/

Note: We have several Preview features which are off by default and can be enabled through the Tools > Options > IntelliCode page.

Selim Yildiz
  • 5,254
  • 6
  • 18
  • 28
  • Thank God. The dumb program seems like it wasn't even tested. Several easy to fix dumb suggestions have been driving me up a wall. – John Glen Aug 09 '23 at 01:59