ekolis
ekolis

Reputation: 6796

How do I update my IntelliCode model in Visual Studio 2019?

I created some models from my various solutions but I'm wondering how I can update them to take advantage of changes in the code in those solutions. Or does this happen automatically? I could delete and recreate the models but that seems like overkill...

Upvotes: 4

Views: 772

Answers (2)

Peter
Peter

Reputation: 27944

You can now update you models from your Azure DevOps pipeline:

https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.VSIntelliCodeTeamModelTraining

https://learn.microsoft.com/eb-gb/visualstudio/intellicode/custom-models

When your code is updated and merged into your repository you kick off the CI pipeline. Add the IntelliCode Team training task to your pipeline. Models are attached to your repository. Everybody with access to the repository can get the updated models in visual studio. Enable the preview feature Team Models in Visual Studio settings: Tools > Options > IntelliCode.

Upvotes: 1

David Obando
David Obando

Reputation: 56

You don't have to delete the model, just retrain it. As of this writing the way you'd refresh your model is by:

  1. Open the solution you want to refresh the model for.
  2. Open the "IntelliCode Model Management" window in Visual Studio.
  3. After the current solution model is shown click on the "Retrain" button

Retrain button image

Let me know if you have any questions.

David from the IntelliCode team.

Upvotes: 4

Related Questions