开发者

Eclipse - Android - Add "Imports"

Coming from .NET backg开发者_开发百科round ...

Is there a way to either via key stroke or by automatic settings to have the "Import" statements added that are needed by the code?

Right now I have to right click each class that I am referencing and choose the add option to have the Imports added and that's slow. I'd like to do them all at once with a single key stroke


I found that SHIFT COMMAND O does the job.


In Eclipse Helios with Android extension, Ctrl+Shift+M works for this purpose.

You can see what you particular key binding is by going to Window->Preferences->General->Keys and enter "import" in the filter widget. Look for "Add import" in the search results.

If it is bound to a key sequence, you can use (or change ) that sequence. If it is not bound, you can bind it to a key sequence.


Eclipse - Android - Add "Imports"

+ SHIFT + O for mac users. Had me stuck for a bit but works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜