Eclipse内容辅助JavaScript的自动激活触发器 [英] Eclipse Content Assist Auto activation triggers for JavaScript
问题描述
这是关于JavaScript的自动激活触发器的回答:
This is with reference to this answer about Auto activation triggers for JavaScript:
https://stackoverflow.com/a/4765318/1472186
答案仅适用于Java。
https://stackoverflow.com/a/4765318/1472186 The answer was only for Java.
有一个意见建议您手动编辑Eclipse设置文件以绕过JavaScript的触发器的4个字符限制,但是在我的Eclipse Luna中找不到设置文件。
There is a comment suggesting editting Eclipse settings file manually to bypass the 4 character limit on the trigger for JavaScript, but I could not find the settings file in my Eclipse Luna.
我还查看了这个文件,但它只适用于Java。
我已经找到 \configuration\org.eclipse.core.runtime
,但里面的文件似乎不可编辑。
任何关于如何在JavaScript自动激活触发器中添加更多角色的想法?
I have also looked at this document, but it is only for Java.
I have located \configuration\org.eclipse.core.runtime
but the files inside don't seem to be editable.
Any idea on how to add more characters into auto activation triggers for JavaScript?
推荐答案
以下是如何克服4个字符的限制对于JS内容帮助:
Here's how you can overcome that 4 character limit for JS content assist:
- 文件 - >导出 - >常规 - >首选项,并将您的首选项保存到文件。
- 打开您在文本编辑器(如记事本)中保存的文件。
- 找到字符串
org.eclipse.wst。 jsdt.ui / content_assist_autoactivation_triggers_java
并输入您想要的自动激活触发器,如
.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
保存文件。 - 返回Eclipse File-> Import-> General-> Preferences,然后导入刚刚编辑的文件。
- File->Export->General->Preferences and save your preferences to a file.
- Open the file you just saved in a text editor such as notepad.
- Find the string
org.eclipse.wst.jsdt.ui/content_assist_autoactivation_triggers_java
and enter the auto activation triggers you want such as.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
then save the file. - Back in Eclipse File->Import->General->Preferences and import the file you just edited.
那就是,你现在在JS中有完整的内容帮助
And that is that, you now have full content assist in JS
这篇关于Eclipse内容辅助JavaScript的自动激活触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!