5

I am a CS student and am starting to work on Leetcode problems. I am trying to use VSCode as my IDE for my solutions but have run into an issue as the IDE is predicting what code I am going to write based on the function names, probably due to the fact that it has seen thousands of similar functions. Does anyone know how to stop this? I have attached a picture below to show what I mean if I explained it poorly.

I have looked up solutions to this issue but haven't found anything helpful, it started after I downloaded the Java package for the app and I think it has something to do with IntelliSense or IntelliCode. Thank you for the help.

0

6 Answers 6

4

I'm fairly certain that's Github Copilot. Just uninstall/disable that extension. Then exit and restart Visual Studio Code.

Details on managing VSCode extensions here: https://code.visualstudio.com/docs/editor/extension-marketplace

Sign up to request clarification or add additional context in comments.

Comments

3

This feature is provided by Github Copilot. If you don't want to uninstall or disable the extension. Use the setting below to turn this feature off.

    "editor.inlineSuggest.enabled": false,

Comments

3

I think it has something to do with IntelliSense or IntelliCode

Yes, if you have the VisualStudioExptTeam.vscodeintellicode extension installed, or any other extension that provides inline suggestions using the InlineCompletion API (such as GitHub Copilot, TabNine, etc.), you'll see inline suggestions like what you're seeing now. If you don't want those suggestions, disable the extension that's providing them. Or you can set the editor.inlineSuggest.enabled setting to false, which makes them not show up automatically as you're typing (you can still trigger them to show up manually by using the Trigger Inline Suggestion command in the command palette). If you have many extensions installed and want to figure out which one is contributing the inline suggestions, do an extension bisect.

Comments

1

Click the little arrow next to the copilot icon on the taskbar at the top, there you will find "Configure code completions".

Copilot config

Clicking on that will take you to

Configure copilot completions

click on disable completions and you are all set.

Comments

0

I've had the same problem. What I did was click copilot icon and uncheck the language which does not need code auto completes. Then the copilot icon will changed with crossed out icon means the code autocompletes are off for selected language.

Comments

-1

I had the issue when I write C/C++ codes. I just disable the GitHub Copilot and GitHub Copilot Hub, which solve the problem. Check your VSCode extension tab.

1 Comment

This answer is really similar to selbie's answer. Once you have enough reputation, you can upvote other's answer. Follow or save this question, so you can return here later. If you have a unique solution to this question, the edit your answer to make it different from previous answers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.