Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - How to show parameters of functions?

In almost any IDE one can re-open the suggestion list for parameters of the function your cursor is currently at. CTRL + SPACE usually did the trick. But all I'm getting is useless list of I don't know what:

enter image description here

like image 890
Stefan Falk Avatar asked Apr 11 '15 21:04

Stefan Falk


People also ask

How can I see all methods in Android Studio?

You can see the Structure tab below your Project tab in Android Studio. Open your file in editor and click on structure tab, it will show all the methods in the class selected.

How to Show Info Android Studio?

Go to Editor → Preference → Editor → General and choose Show quick doc on mouse hover! Show activity on this post. For Android Studio 4.1 and 4.2, this checkbox has moved under Editor → General → Code Completion.

How to see parameters intellij?

View parameter hints in the editorOpen the Settings/Preferences dialog ( Ctrl+Alt+S ) and go to Editor | Inlay Hints | <required language>. Select Parameter hints from the list, make sure the Show parameter hints checkbox is selected, and then specify the context where you want parameter hints shown.

What is Android parameters?

A Parameter provides information about method parameters, including its name and modifiers. It also provides an alternate means of obtaining attributes for the parameter.


1 Answers

Since getPadding() accepts integer arguments it might be useful to show you the list of all methods which return integer value / integer constants. And this is exactly what Ctrl+Space does.
If you want to see the method parameter information, you can hit Ctrl+P; if you want to see full function declaration, use Ctrl+Q.

like image 185
aga Avatar answered Nov 21 '22 14:11

aga