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

前端 未结 10 1577
隐瞒了意图╮
隐瞒了意图╮ 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:10

    With Esc and Command + 1 you can navigate between project view and editor area - back and forward, in this way you can select the folder/location you need

    With Control +Option + N you can trigger New file menu and select whatever you need, class, interface, file, etc. This works in editor as well in project view and it relates to the current selected location

    // please consider that this is working with standard key mapping

提交回复
热议问题