Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable new AI-based IntelliCode in VS 2022?

On the surface the new AI-based IntelliCode for Visual Studio 2022 seems cool. So when I installed VS2022 and it asked if I wanted to allow training models on my code, I said sure because I wanted to see how it improved the developer experience.

But now that I've been coding with VS2022 for a week, I find that working with my 300K lines codebase constantly feels slow in the editor compared to VS2019. And I've even seen weird stuff where I'm sure I keyed one thing but the code got butchered to something totally different, sometimes several lines of code above where I was working. Somehow the VS2022 editor and I are not in sync. Also, while using the editor I've been hearing the fan on my machine kick in at high speeds indicating my machine is working very hard. I don't ever remember this being the case in VS2019. So my first thought to fix all this is to get back to more of a VS 2019 IntelliCode experience in VS2022.

So I went into Tools > Options > IntelliCode > General to turn of the new capabilities. I'd still like to have IntelliCode like it worked in VS2019 but I'd like to turn off the new AI powered models that are (theoretically) slowing down my editor experience. When looking at the settings, it's not clear which ones to change. Worse, it's not even clear when ones are enabled or disabled. They all show Default.

enter image description here

Taking a look at the Microsoft Docs doesn't help much either. It doesn't provide any info about which of these Default options are enabled by default or disabled by default.

I can guess that I probably want to disable Automatic model training and maybe C# deep-learning base model for completions. But should I be disabling others? And if I do turn off C# deep-learning base model for completions will I be disabling functionality I want that was in VS2019? I fired up VS2019 to check it's IntelliCode options and alas all the setting there are set to Default as well. So I neither know what was enabled before or what is enabled now. I only know my editor experience isn't making me happy.

Can anyone shed some light on how to configure these settings so that I have the kind of intelliCode experience I enjoyed in VS2019 without all the overhead of the additional AI IntelliCode features added in VS2022?

like image 687
RonC Avatar asked Nov 17 '21 15:11

RonC


People also ask

How do I disable IntelliSense?

You can enable or disable particular IntelliSense features in the Options dialog box, under Text Editor > C/C++ > Advanced. To configure IntelliSense for single files that aren't part of a project, look for the IntelliSense and browsing for non-project files section.

What is AI assisted IntelliCode?

Assisted IntelliSense – TypeScript/JavaScript IntelliCode saves you time by putting what you're most likely to use at the top of your completion list. IntelliCode recommendations are based on thousands of open source projects on GitHub each with over 100 stars.

Which feature in VS 2022 enable auto completion of code?

In Visual Studio 2022 Preview 1 you can automatically complete code, up to a whole line at a time!

Does the new AI-based Intellicode for Visual Studio 2022 improve developer experience?

On the surface the new AI-based IntelliCode for Visual Studio 2022 seems cool. So when I installed VS2022 and it asked if I wanted to allow training models on my code, I said sure because I wanted to see how it improved the developer experience.

Is Intellicode installed by default?

Visual Studio IntelliCode is installed by default. IntelliCode provides AI-assisted IntelliSense in both Visual Studio and Visual Studio Code. IntelliCode suggestions appear at the top of the completion list with a star icon next to them:

What is Intellicode in Visual Studio?

Visual Studio IntelliCode enhances software development using artificial intelligence. IntelliCode delivers context-aware code completions and guides developers to adhere to the patterns and styles of their team.

What are the Intellicode actual capabilities (2021 Q1)?

This article introduces Intellicode actual capabilities (2021 Q1) that are: Code Refactoring – IntelliCode provides better tailored repeated edit suggestions and refactor the codes accordingly. Help following the code and style patterns.


1 Answers

So this is what worked for me. I went to Tools > Options > IntelliCode > General and selected `Disabled' for the following:

  1. "Apply completions for whole lines on right arrow"
  2. "Show completions for whole lines of code"
  3. "C# team models for completions"
  4. "Automatic model training," and
  5. "C# deep-learning bas model for completions"

The above are the new IntelliCode setting as best I can tell from comparing the settings to VS 2019. Once these were Disabled, the performance of my machine while in the VS2022 editor returned to normal. My editor experience now feels similar to what I had is VS2019. I'm back to being a happy camper.

enter image description here

like image 81
RonC Avatar answered Sep 20 '22 21:09

RonC