Need some help with VS Code autocomplete features

Hello everyone. We updated all our programming laptops recently with all of the 2024 software and it’s all been working quite well. On the 17th, though, for no apparent reason, every single laptop stopped autocompleting properly on this year’s vs code release. Even the one that we updated after this started happening. The 2023 release does work fine though.

Here’s how it looks trying to import smartdashboard, for example:

2 Likes

Auto complete is sensitive to capitalization. The first “S” ins smart dashboard is capitalized. Try with “Smart…”

Try resetting intellisesne. You can you that by running the “Clean Java Language Server Workspace” command in VS Code.

Wow, that’s… good to know. Though I find it a bit weird that it wasn’t case sensitive before. Is there some setting for this?
Besides that, thanks a lot for the tip! It did work for my example, but i’ll still try it out some more, just in case.

1 Like

You should never have to manually type an import.

You should be able to just type the code you want, then, if VSCode hasn’t already added the import, you just have to do Ctrl+Shift+P to open the command palette, and use “organize imports”.

3 Likes

Oh, that’s working fine, it was just the first example I thought of.

This was a change in the vs-code java plugin. Set the default value of 'java.completion.matchCase' to 'firstLetter' by jdneo · Pull Request #3142 · redhat-developer/vscode-java · GitHub

You can change it by going to File -> Preferences -> Settings and changing Java -> Completion: Match Case to off

1 Like