Visual Studio导入问题

huangapple go评论93阅读模式
英文:

Visual Studio Import issue

问题

我已在 Visual Studio Code 中创建了 Spring Boot 项目。

  1. 智能感知未提供任何建议
  2. VS Code 无法建议导入 请在此处查看图片
  3. 默认的 Spring Boot 代码中出现不必要的错误
    请在此处查看图片

请帮我解决。我已经浪费了整天的时间来解决这个问题。我在 Mac OS 上使用 Visual Studio Code。

我还尝试了命令面板--> Java 清除路径。
在 VS Code 的 settings.json 文件中添加了 java.home 路径。

英文:

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.

答案1

得分: 0

VS Code的智能感知功能由语言服务提供支持,还有一种名为Visual Studio IntelliCode的AI辅助智能感知,您可以从扩展市场安装它。当您发现智能感知停止工作时,可能是语言服务未运行。尝试重新安装 java extension pack,然后重新启动VS Code,问题应该会得到解决。

英文:

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.

huangapple
  • 本文由 发表于 2020年9月4日 03:09:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/63730184.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定