How to enable parameter and type inline hints in Visual Studio

Inline parameter name and type hints are very helpful in Visual Studio to provide extra clarity on code without having to mouse over it and are available from VS 2019 16.8.

An example of parameter name hint is below…

While an example of a type hint is below and shows us that we don’t have to fight over whether to use var or not as the hint now makes the type 100% clear… 😂

To enable inline hints in Visual Studio check the boxes highlighted below…Note, if you want to convert the inline parameter hints to actual named parameters so they become part of the code file and will be visible on GitHub, during code reviews etc. simply double click a hint.

One thought on “How to enable parameter and type inline hints in Visual Studio”

Leave a Reply

Your email address will not be published.