Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: name of keymap/shortcut that displays method parameters hint?

Using the latest version of Android Studio.

Once you type the function name and open brackets, AS would automatically display hint with variable type and name (which is really handy). But sometimes it would just disappear.

Does anyone know the keymap (shortcut) that would trigger it to pop again? (haven't found one in AS options, may be I missed one). In particular, I'd like to know the name of the corresponding shortcut so that I can find it through the Preferences screen and update the assigned keys if necessary.

like image 930
0leg Avatar asked Jan 25 '15 14:01

0leg


People also ask

How to see the parameters of a function in Android Studio?

@ShishirGupta Go to Preferences -> Editor -> General -> Code Completion. There you will see a "Parameter Info" section.

How do I see parameters in 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.

Where is the method in Android Studio?

Here's where Android Studio comes to the rescue. Just press CTRL+Space on Windows or Command+Space on Mac and you will be presented with a popup of all the variants of a method and the arguments that it expects.


1 Answers

The command name is "Parameter Info".

On Mac, it's assigned to Command+P by default.

On Windows, it's assigned to Ctrl+P by default.

like image 142
stkent Avatar answered Oct 27 '22 04:10

stkent