How do I create a new class in IntelliJ without using the mouse?

前端 未结 10 1568
隐瞒了意图╮
隐瞒了意图╮ 2021-01-29 18:31

Is there a way to create a new class in a desired location without using the mouse in IntelliJ?

I understand there is no keyboard binding in the default keymap.

10条回答
  •  青春惊慌失措
    2021-01-29 19:00

    I do this a lot, and I don't have an insert key on my laptop, so I made my own keybinding for it. You can do this by opening Settings > IDE Settings > Keymap and navigating to Main menu > File > New... (I would recommend typing "new" into the search box - that will narrow it down considerably).

    Then you can add a new keyboard shortcut for it by double clicking on that item and selecting Add Keyboard Shortcut.

提交回复
热议问题