Intellicode in Visual Studio 2019

 What is Intellicode?


Visual Studio IntelliCode (IntelliCode) is a set of AI-assisted capabilities that improve developer productivity with features like contextual IntelliSenseargument completioncode formatting, and style rule inference.

Intellicode in Visual Studio 2019

We can see in the below example that when user tries to see the intellisense for a string variable :
  • Visual studio 2017 (which is not got the intellicode enabled) shows the traditional intellisense items (i.e. Aggregate<>, All<> etc.). This doesn't take care of the context. The current context is , we are trying to compare something in the if block. we would either be finding length , find index of , contains etc.) But this is not showing up the same.
  • Visual Studio 2019 (which has got intellicode enabled) shows all relevant intellisense item (which are as per the current context). 

Sample Code in Visual Studio 2017 (with NO intellicode):
Sample Code in Visual Studio 2019 (with intellicode):
Happy Coding !

Comments