Question: It seems that Visual Studio 2022 has a new feature that resembles GitHub Autopilot.

This is an image related to this feature:

[![enter image description here](https://i.stack.imgur.com/RFvsD.png)](https://i.stack.imgur.com/RFvsD.png)

This feature is very very annoying (slow and unpredictable and interfering with your typing speed). Thus I searched to see how can I disable it. But I can't find anything.

So, how can I disable this?

Answer: 
The new Intellicode in Visual Studio was pretty annoying for me as well, and I was able to follow the steps in [this Stack Overflow post](https://stackoverflow.com/questions/70007337/how-to-disable-new-ai-based-intellicode-in-vs-2022) to disable it completely.

However, if you just want to disable the specific prompt, you can press `esc` and dismiss the suggestion.
Some extensions can cause a typing delay, for example Rainbow Braces. It can cause a lag of few secs trying to type, usually on large files > 5000 lines. After disabling the typing comes to normal.