简体   繁体   English

使用 XML 时 Eclipse 中没有默认建议

[英]No default proposals in Eclipse when working with XML

So i started learning javaFX.所以我开始学习javaFX。 And ive succesfully added javadocumentation in Eclipse when working with XML, but normally when im working with Java in Eclipse i get default recommendations with methods or when typing in java i get recommendations.我在使用 XML 时成功地在 Eclipse 中添加了 javadocumentation,但通常当我在 Eclipse 中使用 Java 时,我会得到默认的方法建议,或者在输入 java 时我会得到建议。 These are really nice and i often scroll trough them just to see what methods there are and play around if i see anything interesting.这些真的很好,我经常滚动浏览它们只是为了看看有什么方法,如果我看到任何有趣的东西就玩。 When working in XML files i do not get the recommendations at all, ive tried alot of stuff and dont wanna break something since i just started on JavaFX and finally configured most things correctly :P在 XML 文件中工作时,我根本没有得到建议,我尝试了很多东西并且不想破坏某些东西,因为我刚刚开始使用 JavaFX 并最终正确配置了大多数东西:P

Can anyone please help me ?谁能帮帮我吗 ?

Thanks in advance!!提前致谢!!

Info: JDK 11信息:JDK 11

JavaFX version 11 JavaFX 版本 11

This is someone who does get the default proposal这是获得默认提案的人

I do not get any kind of proposal when typing at all just to show here打字时我没有得到任何建议只是为了在这里显示

Make sure to open xml file with proper editor in Eclipse.确保在 Eclipse 中使用适当的编辑器打开 xml 文件。
Select xml file => click with right mouse button => Open with => XML Editor选择 xml 文件 => 用鼠标右键单击 => 打开方式 => XML 编辑器

Then you can press "Strg + Space" while typing and you should get the proposals.然后你可以在输入时按“Strg + Space”,你应该得到建议。

You can also check your Content Assist settings here: Eclipse Menu => Window => Preferences您还可以在此处检查您的内容辅助设置:Eclipse 菜单 => 窗口 => 首选项
XML => XML Files => Editor => Content Assist XML => XML 文件 => 编辑器 => 内容辅助
Here you can check things like "Automatically make suggestions"在这里您可以检查诸如“自动提出建议”之类的内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM