Can IntelliJ auto-complete constructor parameters on “new” expression?

后端 未结 5 2086
旧巷少年郎
旧巷少年郎 2020-12-13 01:56

If my class has a non-empty constructor, is it possible to auto-complete parameters in the new expression?

With Eclipse, if you press ctrl+

5条回答
  •  孤城傲影
    2020-12-13 02:38

    Well there's the Ctrl+Shift+Space combination, which tries to come up with a set of possible arguments. And if you press the Ctrl+Shift+Space a second time, Idea tries find arguments which fit across multiple calls & conversions.

    So in your example Ctrl+Shift+Space would almost certainly bring up the 'name' as suggestion. And the next Ctrl+Shift+Space would bring up 'value' as suggestion.

提交回复
热议问题