New features of Visual Studio 2019 – IntelliCode


IntelliCode to be very precise provides Artificial Intelligence to the code.

Basically, it will provide suggestions (AI) by displaying at the top the frequently used properties, functions, etc. as shown below.

For DateTime, IntelliCode is suggesting Now, UtcNow, MinValue and Today, as these are the ones that are used frequently.

Similar for our IOrganizationService class of Dynamics 365 CE, it suggests RetrieveMultiple, Execute, Retrieve
Update, Associate as the most frequently used methods.

To enable it.

Navigate to Tools à Options à IntelliCode

Enable the required features à

The IntelliCode gets its intelligence to give recommendations based on the huge number of open-source projects on GitHub with more than 100 stars on which it has performed machine learning and have the models defined.

The interesting part is that we can have intelliCode work for our code as well.

From within the Project, Navigate to View à Other Windows à IntelliCode Model Management.

Select Create a new model à

It will start the training and will store the generated model locally along cloud to be referred in case if working offline.

The model can be shared, deleted and retrained.

For e.g. we have the following class

And within our code, we are making use of FullName property frequently.

Now after training (retraining), it would suggest FullName as the property for our SampleClass that is being used frequently.

Get all the details here

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

Hope it helps..

Advertisements

Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

One thought on “New features of Visual Studio 2019 – IntelliCode”

Please share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.