Search code examples
javaspring-bootvisual-studio-codeintellisenseimporterror

Visual Studio Import issue


I have created spring boot project in Visual Studio Code.

  1. Intellisense is not giving any suggestion
  2. VS code unable to suggest import please view image here
  3. unnecessary error in the default spring boot code please view image here

Please help me out. I have wasted my hold day just to make this work. Im using Visual Studio Code on Mac OS.

I have also tried the Command Palette--> Java Clean path. Added java.home path in VS Code settings.json file.


Solution

  • VS Code IntelliSense features are powered by a language service, and there's AI-assisted IntelliSense called Visual Studio IntelliCode which you can install from extension marketplace. When you find IntelliSense has stopped working, the language service may not be running. Try reinstalling the java extension pack and restarting VS Code and this should solve the issue.