在 Eclipse 中禁用内容辅助

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4906137/
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 19:55:16  来源:igfitidea点击:

Disable content assist in Eclipse

eclipsecontent-assist

提问by PhaZ90771

How do you disable content assist in Eclipse?

如何在 Eclipse 中禁用内容辅助?

I do not mind allowing it to come up when I press ctrl & space, but I do not like how it automatically comes up as I am typing. It just messes me up. For instance it, I would end up scrolling through the options when I just want to go up a line. It is getting tedious having to press escape whenever it decides to pop up.

我不介意在我按下 ctrl 和空格键时让它出现,但我不喜欢它在我打字时自动出现的方式。它只是把我搞砸了。例如,当我只想向上一行时,我最终会滚动浏览选项。每当它决定弹出时都必须按退出键变得很乏味。

I have found the page in the preferences for it, but I cannot seem to find out how to disable the auto-pop-up.

我在它的首选项中找到了该页面,但我似乎无法找到如何禁用自动弹出窗口。

EDIT: I am using the application for android development. I have already disabled "auto-activation" for both Java and XML, but it does not seem to have an effect. The window will still pop up automatically.

编辑:我正在使用该应用程序进行 android 开发。我已经为 Java 和 XML 禁用了“自动激活”,但它似乎没有效果。该窗口仍会自动弹出。

EDIT2: I tried restarting the program after making the changes, but it still had no effect. I made sure that the option changes were still in effect, and they were still in effect.

EDIT2:我尝试在进行更改后重新启动程序,但它仍然没有效果。我确保选项更改仍然有效,并且它们仍然有效。

回答by R K

This Eclipse3.6 Help pageon Content assist can help (it is for C++, but the same idea applies for Javaon the Java > Editor > Content Assistpreference page.):

内容辅助上的这个Eclipse3.6 帮助页面可以提供帮助(它适用于 C++,但同样的想法适用于Java > Editor > Content Assist偏好页面上的Java。):

enter image description here

在此处输入图片说明

The idea is to disable what triggers the content assist.

这个想法是禁用触发内容辅助的内容。

回答by theEpsilon

  • Go to Window → Preferences.

  • In the filter text search bar, type "typing".

  • Go to Editor → Typing.

  • Uncheck all that you don't want.

  • 转到窗口→首选项。

  • 在过滤器文本搜索栏中,键入“打字”。

  • 转到编辑器 → 打字。

  • 取消选中您不想要的所有内容。

回答by user2883570

Don't know if you did get it to disable but I was having the same trouble as you. I did the following: Window > Prefrences > Content Assist Uncheck all and hit apply

不知道您是否确实禁用了它,但我遇到了和您一样的麻烦。我做了以下操作:窗口 > 偏好 > 内容辅助取消选中所有并点击应用

Java > Editor > Content assist > Advanced Uncheck all and hit apply.

Java > 编辑器 > 内容辅助 > 高级取消全部选中并点击应用。

Hope this works if you still haven't found an answer.

如果您还没有找到答案,希望这有效。

回答by Thomas Farvour

It's not readily obvious and there doesn't appear to be a global option to turn it off all over the place. This may sound obvious, but it's important to make sure to turn off Auto-Activation on all of the different structured editor types that you do not want it active on.

这不是很明显,并且似乎没有一个全局选项可以在所有地方关闭它。这听起来可能很明显,但重要的是确保关闭所有您不希望它处于活动状态的不同结构化编辑器类型上的自动激活。

回答by Vishwanath Kalaje

In Eclipse Mars.1 :- go to Window then->preferences -> Java -> Editor -> Content Assist ->Advanced -> Restore Default ->Apply and then OK.

在 Eclipse Mars.1 中:- 转到 Window then->preferences -> Java -> Editor -> Content Assist ->Advanced -> Restore Default ->Apply 然后确定。

回答by Eric Eriksson

Go to Window -> Preferences -> PHP -> Editor -> Content Assist -> Auto Activation Untick the box "Enable auto activation"

转到窗口 -> 首选项 -> PHP -> 编辑器 -> 内容辅助 -> 自动激活 取消勾选“启用自动激活”框