Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable partial line code suggestions in Visual Studio Code? [duplicate]

Tags:

c#

vs-code

I have the C# and C# Dev Kit extensions installed in Visual Studio Code. Sometimes the editor will suggest code to complete a line or portion of a line, such as this example in the orange box:

VSCode editor is suggesting code to complete a method call I am writing

How do I disable this functionality in Visual Studio Code?

like image 281
user2771324 Avatar asked Sep 19 '26 02:09

user2771324


1 Answers

You can disable inline suggestions from IntelliCode:

  1. Go to File > Preferences > Settings.
  2. Search for IntelliCode and find the settings labeled Editor: Inline Suggestions.
  3. Uncheck Editor:Inline Suggestions to disable it.

Some C# extensions, like the C# Dev Kit, might also have settings for IntelliSense or AI-based suggestions

  1. Go to Settings and search for C# Dev Kit or just C#.
  2. Look for any settings that control IntelliSense or AI-based suggestions, and adjust them as needed.
like image 191
Ashkan Afsharpour Avatar answered Sep 20 '26 17:09

Ashkan Afsharpour



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!