IntelliCode for Visual Studio

Posted by Anuraj on Friday, December 7, 2018 Reading time :2 minutes

IntelliCode Visual Studio

Visual Studio IntelliCode is a new tool that enhances software development using artificial intelligence. IntelliCode helps developers and teams code with confidence, focus code reviews, and find issues faster. This post is about working with Visual Studio IntelliCode. IntelliCode comes as an extension in both Visual Studio and Visual Studio code.

You can install the Visual Studio extension from Visual Studio Marketplace and from VS Code Marketplace

Visual Studio IntelliCode extension

Once you installed, both Visual Studio and VS Code will start displaying AI-assisted IntelliSense by showing recommended completion items for your code context at the top of the completions list. For example in the following screenshot, it is displaying LoadHtml method of HtmlDocument class from HtmlAgilityPack package.

Visual Studio IntelliCode suggestions

If you notice, you will be able to see a star prefixed in the method name and in the help text it is mentioned like suggested by IntelliCode. Currently IntelliCode supports C#, C++, and XAML languages in Visual Studio and Python, TypeScript/JavaScript and Java in VS Code.

With the preview release, IntelliCode will display recommendations based on your code, works only on C#. You can have IntelliCode learn patterns from your code, so it can make recommendations on code that isn’t in the open source domain, such as methods on your own utility classes or domain specific library calls. We keep the trained models secured, so only you and those who have been given your model’s sharing link can access them–so your model and what it’s learned about your code stay private to you. When you open a project in Visual Studio, IntelliCode will prompt to train the model.

Visual Studio IntelliCode - Prompt

And clicking on Try it now will display a screen like this.

Visual Studio IntelliCode - Train model

You can take open this screen from View >Other Windows >IntelliCode menu item.

You can train IntelliCode by clicking on the Train on my code button, which will learn patterns from your code to make recommendations for things. Once the training is completed, it will show details about the model, option to share model with your co workers, delete model option and ability to retrain the model.

Visual Studio IntelliCode - Train model

Share model option gives a URL, and this you can use with Add model option.

I started using Visual Studio IntelliCode. Are you using it? Did you faced any issues? Let me know. Here are some resources which helps you to get more details about Visual Studio IntelliCode.

  1. Visual Studio IntelliCode
  2. Visual Studio IntelliCode - Preview
  3. IntelliCode for Visual Studio Code FAQ
  4. IntelliCode for Visual Studio FAQ
  5. IntelliCode models based on your code FAQ

Happy Programming :)



Did you like this article? Share it with your friends

Facebook Twitter Google+ LinkedIn Reddit StumbleUpon



Translate
Subscribe
BMC logoBuy me a coffee


Copyright © 2018 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub