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

后端 未结 5 2084
旧巷少年郎
旧巷少年郎 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:43

    There's no such possibility yet. As IDEA doesn't fill the arguments automatically, distinguishing the constructors in the lookup makes no sense. There's a request for that (http://youtrack.jetbrains.net/issue/IDEABKL-5496) although I sincerely believe such a behavior is too dangerous and error-prone.

提交回复
热议问题