Is there a similar to this feature in Eclipse when you type out annotations?

已回答

There's a feature in Eclipse which is quite nice - when you type out an annotation followed by parentheses, a popup box appears where you can choose the parameters to choose, as well as descriptions for each parameter. 

I know Intellij has Parameter Info (View | Parameter Info), but that only tells you the parameter names and types; it doesn't let you select it from the popup box nor does it give you some description.

0

Hello Riverfish

You may use the code completion (https://www.jetbrains.com/help/idea/auto-completing-code.html) to complete the parameters and their values:

0

Hey Olga,

 

Turns out I already have "Show suggestions are you type" checked. I see in the picture you posted, two popup boxes appear. I seem to only get the top box, but not the bottom box. Any ideas why?

0

Riverfish,

The code completion popup should be opened as you press Ctrl+Space (Basic completion). Please tell if it works for you? 

0

Nothing appears. I also IdeaVim plugin installed so maybe the keybinds don't work as intended

0

Please check the shortcut mapped to the completion in the Preferences | Keymap:

0

My keymap bindings are the same as yours, but I found the problem: on Mac, ctrl + space is a shortcut to change languages on your keyboard. At least that's sorted now. Is it possible to have the code completion tab appear automatically without the need to press ctrl + space?

0

Riverfish,

 

In your case auto completion will work as you start tying i.e:

but when there is nothing typed yet no auto completion is suggested, ctrl+space should be pressed for it.

0

That's the thing, it doesn't..

0

Riverfish,

Can you please disable all custom plugins and check if it works for you with v2020.2 Beta (https://www.jetbrains.com/idea/nextversion/#section=mac). Thank you

0

请先登录再写评论。