What's the best way to use shortcuts and autocomplete to create a new object in Intellij IDEA?

后端 未结 3 1866
暗喜
暗喜 2020-12-05 10:54

Object + shortcutObject object = new Object();

Whether there is such shortcut?

3条回答
  •  醉酒成梦
    2020-12-05 11:55

    You can define your own Live Template. Press Crtl+Alt+Shift+S (go to Settings), then go to tab Live Templates and write down something similar to below and you will have new shortcut (newo+tab).

提交回复
热议问题