Eclipse Spring Tools缺少内容辅助/自动完成 [英] Eclipse Spring Tools missing content assist/ autocomplete

查看:63
本文介绍了Eclipse Spring Tools缺少内容辅助/自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新年-新问题;)

我正在Linux机器上工作,并且刚刚安装了新的Eclipse.

I'm working on a Linux machine and I've just installed a new Eclipse.

Version: Oxygen.2 Release (4.7.2)
Build id: 20171218-0600

JRE: java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

然后,我通过市场添加了最新版本的 Spring Tools 3.9.2.RELEASE .

Then I've added the latest Version of Spring Tools 3.9.2.RELEASE via the marketplace.

当前唯一安装的其他其他插件是 Subversive 4.0.5

The only other additional plugin that is currently installed is Subversive 4.0.5

我正在处理的项目和以前按预期工作的项目已启用 Spring Boot Project Nature .

The Project that I'm working on and that previously worked as expected has the Spring Boot Project Nature enabled.

但是使用新安装后,我缺少了自动完成功能-不再需要完成或提议属性.

But with the new installation I'm missing the autocomplete feature - No completion or proposals of properties anymore.

在Project Explorer中, application.yml 仅显示标准文件图标,不再显示(如果我没记错的话)Spring leaf图标.在另一个使用"application.properties"文件的项目中,行为是相同的.

In the Project Explorer the application.yml display only the standard file icon and no longer the (if my memory serves me right) Spring leaf icon. In an other Project using a 'application.properties' file the behavior is the same.

现在需要设置一个设置吗?还是我可以检查的其他东西?

Is there a setting that now needs to be set? Or something else that I can check?

与我之前的问题没有直接关系:

Not directly related to my previous question:

在可以正常工作的旧安装中,我一直想知道为什么这两个文件名 application.properties application-dev.properties (或它们的.yml类似)被识别为属性文件,而其他则未被识别为属性文件 application-test.properties application-prod.properties .

In my old installation that worked, I've always wondered why exactly these two filenames application.properties and application-dev.properties (or their .yml analogous) were recognized as properties files while other were not e.g. application-test.properties or application-prod.properties.

请参阅从STS-3.9.2拍摄的图像:

See image taken from STS-3.9.2:

这不仅是图标的问题,而且还会打开错误的编辑器,因此我没有自动完成支持-除非我说 Open with->Spring Yaml属性编辑器.

It is not only an issue with the icon, but also it opens the wrong editor and therefore I don't have autocomplete support - unless I say Open with -> Spring Yaml Properties Editor.

推荐答案

我分析了缺少属性编辑器的问题,并找到了原因(及其解决方案),在此处进行了记录:

I analyzed the problem of the missing property editor and found the reason (and a solution for it), which is documented here:

缺少Spring Properties Yaml编辑器和使用Spring Tools 3.9.2的Spring Properties Editor

这篇关于Eclipse Spring Tools缺少内容辅助/自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆