禁用 Eclipse 自动完成

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1417239/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:56:10  来源:igfitidea点击:

disable eclipse auto completion

eclipse

提问by SpliFF

I love Eclipse but I HATE auto-completion with a vengeance! I swear though, no matter how hard I look in prefs or Google I can't find where I turn this off!

我喜欢 Eclipse,但我讨厌自动补全!我发誓,无论我在首选项或谷歌中多么努力,我都找不到关闭它的地方!

I'm having the problem with both CFEclipse and the PHP editor.

我在使用 CFEclipse 和 PHP 编辑器时都遇到了问题。

How do I completely disable all "smart" quotes/tags/braces auto-inserting. Not some of it.. ALL of it. No matter how many options I untick both editors keep trying to finish my code for me.. usually with irritating results. Like this one (PHP editor):

如何完全禁用所有“智能”引号/标签/大括号自动插入。不是其中的一部分……全部。无论我取消了多少选项,两个编辑器都会继续尝试为我完成我的代码......通常会产生令人讨厌的结果。像这个(PHP编辑器):

<img alt="banner" src="/images/banner.jpg"></img>

This is HTML, not XHTML - I don't want, or need, my img tags closed.

这是 HTML,而不是 XHTML - 我不想要或不需要关闭我的 img 标签。

Anyway this is still happening after I've gone to Preferences | PHP | Editor | Typing and Preferences | PHP | Editor | Code Assist and unchecked every option.

无论如何,在我转到“首选项”后,这仍然会发生 | PHP | 编辑 | 打字和首选项 | PHP | 编辑 | Code Assist 并取消选中每个选项。

I can't be the only one having this issue but I can't find any howtos or help on this.

我不可能是唯一一个遇到这个问题的人,但我找不到任何方法或帮助。

采纳答案by SpliFF

Well I found how to stop the tags auto-closing. For some reason it's under the Web | HTML Files preferences (even for a PHP file). I realise PHP is embedded in HTML but it seems odd the way the Editor options cross over like this. You need to restart Eclipse for this change to work.

好吧,我找到了如何停止标签自动关闭。出于某种原因,它在 Web 下 | HTML 文件首选项(即使对于 PHP 文件)。我意识到 PHP 嵌入在 HTML 中,但编辑器选项像这样交叉的方式似乎很奇怪。您需要重新启动 Eclipse 才能使此更改生效。

回答by IanG

I don't know how to find the Web | HTML Files Preferencessection of cfeclipse configuration. The best I could find for this utterly infuriating so-called featureis this:

我不知道如何找到cfeclipse configurationWeb | HTML Files Preferences部分。对于这个令人恼火的所谓功能,我能找到的最好的东西是:

Go to Window -> Preferences -> CFEclipse -> EditorThen set Insight Delay to 9999. This won't turn it off but as good as. (Thank you House of Fusion for confirming my action).

Go to Window -> Preferences -> CFEclipse -> Editor然后设置Insight Delay to 9999。这不会关闭它,但一样好。(感谢融合之家确认我的行动)。

回答by Nokia808Freak

You can find the HTML content assist in:

您可以在以下位置找到 HTML 内容帮助:

Window > Preferences > Web > HTML Files > Editor > Content Assist

and uncheck the "Automatically Make Suggestions" checkbox in the "Auto Activation" Panel

并取消选中“自动激活”面板中的“自动提出建议”复选框

(used Linux Version of Eclipse Juno)

(使用 Eclipse Juno 的 Linux 版本)

回答by Kevin Pajak

Found it (it IS hard to find, I know). It's: Window > Preferences > Web > HTML Files > Editor > Typing (a LOT of steps, I know), then you can uncheck the boxes :).

找到了(我知道很难找到)。它是:窗口 > 首选项 > Web > HTML 文件 > 编辑器 > 打字(很多步骤,我知道),然后您可以取消选中这些框:)。

回答by gcdev

I was trying to disable this for Javascript, and my environment was not set up the way the other answers were describing. I had to go to:

我试图为 Javascript 禁用此功能,但我的环境并未按照其他答案所描述的方式进行设置。我不得不去:

Window > Preferences > Aptana Studio > Editors > JavaScript > Content Assist

窗口 > 首选项 > Aptana Studio > 编辑器 > JavaScript > 内容辅助

There I had to empty the textboxes for:

在那里我不得不清空文本框:

  • display proposals
  • display contextual info
  • insert proposal
  • 展示提案
  • 显示上下文信息
  • 插入提案

Now it shows me suggestions, which is great, but no longer forces its favorite suggestion on me when it thinks it's appropriate. It was turning:

现在它向我显示建议,这很好,但不再在它认为合适时将其最喜欢的建议强加给我。它正在转向:

this.

...into:

...进入:

thistory.

THISTORY? What on earth is THISTORY? I'm glad that annoyance is over.

历史?这到底是什么?我很高兴烦恼已经过去了。

回答by Glouba

Same issue, a slightly different location : looks like this is to be unplugged for each different programming language we use.

同样的问题,位置略有不同:看起来这对于我们使用的每种不同的编程语言都要拔掉。

For Java, I had to look in :

对于 Java,我必须查看:

(window / preferences) Java > Editor > Content Assist, frame "Auto Activation", uncheck "Enable auto activation"

For Linux version of Eclipse Juno, find it in:

对于 Eclipse Juno 的 Linux 版本,请在以下位置找到它:

Window > Preferences > Java > Editor > Content Assist. then uncheck "Enable auto activation" from the "Auto Activation" Panel

Then Eclipse and I can work together...

然后Eclipse和我可以一起工作......

回答by Олег Всильдеревьев

To disable autoclosing for brackets and HTML tags you shall go: Preferences-> PHP/ Web-> Editor-> Typingthen unchek all you need :)

要禁用括号和 HTML 标签的自动关闭,你应该去: 首选项-> PHP/ Web->编辑器->输入然后取消你需要的所有内容:)

回答by deeeptext

Yes, code completion and it's family are VERY irritating and it's hard to find the right checkbox. Windows->Preferences. And then look at all the choices for editors. You will find the place. I'm using Flash Builder and encounter the same annoyance with the Actionscript editor.

是的,代码完成和它的家族非常烦人,而且很难找到正确的复选框。Windows->首选项。然后查看编辑器的所有选择。你会找到那个地方。我正在使用 Flash Builder 并遇到与 Actionscript 编辑器相同的烦恼。

回答by JAW

I tried unchecking AutoActivation in ContentAssist for the Java Editor in hopes of disabling SmartInsert. But that failed. Best I could do was to go to Windows>Preferences>Java>Editor>Typing. Then uncheck both the Indentation boxes and Adjust Indentation in When pasting. That disabled the parts of SmartInsert that annoyed me the most. Should work the same for other editors. It is a shame there seems to be no way to disable it altogether.

我尝试在 Java 编辑器的 ContentAssist 中取消选中 AutoActivation,以期禁用 SmartInsert。但那失败了。我能做的最好的事情就是转到 Windows>Preferences>Java>Editor>Typing。然后在粘贴时取消选中缩进框和调整缩进。这禁用了 SmartInsert 中最让我烦恼的部分。对于其他编辑器应该也一样。很遗憾,似乎无法完全禁用它。