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

Hope it helps..


New features of Visual Studio 2019 – New Search Experience and UI changes

Visual Studio 2019 comes with a completely revamped, context-sensitive Search experience.

To change the Theme, search for keyword “Theme” and select the appropriate result.

It would open the respective screen, which allows us to quickly make the changes.

Similarly, to change the Font.

Also, observe the option to “Search online for ‘Font'”, which opens the search result in the browser. It appends the “Visual Studio 2019” keyword to the search term.

The search result is also context-sensitive,

For e.g. search results when a search is performed when the context is the file within a project.

The search results when Solution is selected inside Solution Explorer.

Recent results screen

With regards to UI changes, we now have the new Start Page

Clone or check out code lets us open the Git Repository quickly

Create a new project allows, search for the project template and filter it as well

The toolbar changes, top one is 2019 one and the bottom one is Visual Studio 2017. Project Name has moved to the right in the toolbar and it is now 2 rows. Quick Launch is now replaced with the Search box.

Automatic downloading updates.

The above useful changes are surely going to be loved by the technical community who always loved Visual Studio.

Hope it helps..

New features of Visual Studio 2019 – Export / Import Visual Studio Configuration Settings

Within Visual Studio Installer, we now have the option to export and import the configuration settings. These configuration settings can then be shared with the team to import, which makes sure that all of them have the same set of workloads installed in their Visual Studio environment.

Select the version of Visual Studio and click on Export Configuration.

Click on Review Details to check the workloads part of the configuration

Here we can see .NET desktop and ASP.NET workload to be part of it.

The content of .vsconfig file

To import it, click on Import Configuration.

Select vsconfig file and click on Review Details

Click on Modify to install the workload/components.

The installation begins and installs the required components.

Hope it helps..