Eclipse内容辅助自动为变量追加类型 [英] Eclipse content assist auto appends type for variable

查看:217
本文介绍了Eclipse内容辅助自动为变量追加类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用Juno几天,内容辅助机制似乎与以前的行为有所不同.

I just started to use Juno for a couple of days, the content assist mechanism seems different from what it behaves before.

例如,如果我尝试声明一个变量

For example, if I try to declare a variable

Boolean isVisible

Juno的内容帮助将为您提供一个带有变量名称的下拉列表

The content assist of Juno will give you a drop-down list with the variable name

isVisibleBoolean

作为提示.

非常令人讨厌的是,无论我键入(;或SPACE),都会选择"isVisibleBoolean".

And the very annoying thing is that no matter what I typed in(; or SPACE), the "isVisibleBoolean" will be selected.

有人知道如何禁用自动变量类型附加功能吗?

Does anybody know how can I disable the auto-variable-type-appending thing?

非常感谢.

我当前正在使用Mac OS X 10.8.1,尚未在Windows中对其进行测试.

I'm using Mac OS X 10.8.1 currently, haven't tested it yet in windows.

推荐答案

基于对 Eclipse Bug的讨论412992 ,检查您的Content Assist自动激活设置: 窗口->首选项-> Java->编辑器->内容辅助

Based on the discussion for Eclipse Bug 412992, check your Content Assist Auto Activation settings: Window->Preferences->Java->Editor->Content Assist

例如,如果字符a-z被列为"Java的自动激活触发器",则可以将其删除,并且在您键入''或';'时,类型名称将不会自动附加到新的变量名称上.您可以根据可用的选项来确定适合自己风格的最佳配置/权衡.

If, for example, characters a-z are listed as "Auto activation triggers for Java", you can remove them and the type name will not be auto-appended to a new variable name when you hit ' ' or ';'. It's up to you to determine the best configuration/tradeoffs for your style based on the available options.

这篇关于Eclipse内容辅助自动为变量追加类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆