简体   繁体   English

让ADT Code Assist像Xcode自动完成一样工作

[英]Make ADT Code Assist work like Xcode autocomplete

Is there a way to setup ADT such that the "Code assist" / autocomplete kicks in as soon as I start typing, without having to press Ctrl + Spacebar? 有没有办法设置ADT,这样一旦我开始输入“代码辅助”/自动完成就会启动,而不必按Ctrl +空格键?

Basically, I'm an iOS developer starting out with Android, and I've gotten very used to the way Xcode autocomplete kicks in as soon as you start typing. 基本上,我是一个从Android开始的iOS开发人员,并且我已经习惯了Xcode自动完成的方式,一旦你开始输入。

With ADT, it seems that once I type a "object.", the code assist kicks in, but if I want to use it save time typing out class variables, I have to actually press Ctrl+Spacebar, and this gets annoying. 使用ADT,似乎一旦我键入“对象”,代码辅助就会启动,但是如果我想使用它节省输入类变量的时间,我必须实际按Ctrl +空格键,这会很烦人。

Found the answer via this question: Auto code completion on Eclipse 通过这个问题找到了答案: Eclipse上的自动代码完成

Basically the auto activation trigger for auto-complete by default is set to only the character ".". 基本上,默认情况下自动完成的自动激活触发器仅设置为字符“。”。

To make code assist / auto complete trigger always, you have to change the string to: 要始终进行代码辅助/自动完成触发,您必须将字符串更改为:

.abcdefghijklmnopqrstuvwxyz

In v21.xx version of ADT, this is located in Preferences -> Java --> Editor --> Content Assist. 在v21.xx版本的ADT中,它位于Preferences - > Java - > Editor - > Content Assist中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM