自动完成问题在android-studio [英] Auto completion issue in android-studio

查看:123
本文介绍了自动完成问题在android-studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使自动完成方法在android-studio中工作,就像在eclipse中一样。
例如,如果我有一个方法:

  public void testMethod(String a,String b,int c) {} 

如果我从eclipse调用它,然后按 CTRL + < kbd> SPACE ,eclipse的自动完成会创建一个包含以下参数的完整方法: testMethod(a,b,c)



但在android-studio中,它不会生成参数: testMethod();



与泛型类型的方法或变量(如arraylists或hashmap)相同。

解决方案

请同时把信息关于您的Android Studio版本。我的建议 - 首先尝试:命令查找(自动完成命令名称) CTRL + kbd> SHIFT + A



在Android studio中,您应该有一个视图,显示所有必需参数,但作为提示,不是预定义的功能形式。



https://developer.android.com/sdk/installing/studio-tips.html


I am trying to make auto-completion of methods work in android-studio like it does in eclipse. For example, if i have a method:

public void testMethod(String a, String b, int c) {}

and if i call it from eclipse and press CTRL + SPACE, the auto completion of eclipse creates the full method with its parameters like this: testMethod(a, b, c)

but in android-studio, it is generated without its parameters: testMethod();

Same is the cases with generics type of methods or variables such as arraylists or hashmap.

解决方案

please also put information about your Android Studio version. It will be hard to guess without it.

My advise - first try with: Command look-up (autocomplete command name) CTRL + SHIFT + A

In Android studio you should have a view which shows you all mandatory parameters but as a prompt, not a predefined form of function.

https://developer.android.com/sdk/installing/studio-tips.html

这篇关于自动完成问题在android-studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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