[英]Auto-complete jQuery in eclipse
I use the eclipse javascript neon version. 我使用的是eclipse javascript霓虹灯版本。 When I type
do
and press Ctrl + Space
there appears the suggestion for do while
but none for document
. 当我键入
do
并按Ctrl + Space
,会出现do while
的建议,但没有document
的建议。 If I used document
once it appears in future uses but I want that it suggests all the possible reasonable continuations. 如果我曾经使用过
document
,但该document
将来会出现,但我希望它建议所有可能的合理延续。 In a JS Project -> JavaScript Resources are two libraries. 在JS Project-> JavaScript Resources中,有两个库。 ECMAScript Built-In Library and ECMA 3 Browser Support Library.
ECMAScript内置库和ECMA 3浏览器支持库。 In the second are all the methods I'm interested but they don't show up in the auto-completion before I use the explicitly.
第二种是我感兴趣的所有方法,但是在我显式使用它们之前,它们不会出现在自动完成中。
Things that I read on stackoverflow that did not work: 我在stackoverflow上阅读的内容不起作用:
Window → Preferences → JavaScript → Editor → Content Assist → Restore Defaults
. Window → Preferences → JavaScript → Editor → Content Assist → Restore Defaults
。 For some it resolved the problem but for me it did not work. Window → Preferences → JavaScript → Editor → Content Assist → Advanced → Other JavaScript Proposals
are already checked. Window → Preferences → JavaScript → Editor → Content Assist → Advanced → Other JavaScript Proposals
已被检查。 Unfortunately autocompletion of javascript code does not work in Eclipse Neon for this moment. 不幸的是,JavaScript代码的自动补全功能暂时无法在Eclipse Neon中使用。 The reason is desribed in this bug's answer: Eclipse bug description .
该错误的答案中描述了原因: Eclipse bug description 。 This problem can be solved by installing Tern plugin in Eclipse.
通过在Eclipse中安装Tern插件可以解决此问题。 Detailed instruction can be found here: Tern installation guide .
详细说明可在此处找到: Tern安装指南 。
You can also downgrade eclipse to Mars version, where autocompletion works out of the box, however it supports only older versions of javascript. 您还可以将eclipse降级为Mars版本,该版本可以自动完成,但是仅支持旧版本的javascript。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.