Eclipse, shortcut to create new Java class

后端 未结 9 1914
北恋
北恋 2020-12-28 14:40

Is it possible to assign a shortcut to go automatically on New Java Class Dialog? At the very beginning of a project when I am creating a lot of classes, it\'s quit

相关标签:
9条回答
  • 2020-12-28 15:15

    Select Window -> Preferences -> General -> Keys and search for New (Class). Click on Binding, press the keyboard shortcut you want, and click OK to configure the shortcut.

    0 讨论(0)
  • 2020-12-28 15:16

    You could use Ctrl+3 to open the "Quick Access" Wizard and type in "java class"

    0 讨论(0)
  • 2020-12-28 15:23

    on Mac alt(option)+command+N > displays a menu, scroll using arrow keys for appropriate selection and hit Enter.

    0 讨论(0)
  • 2020-12-28 15:33

    Press alt+shift+n it will give you a context menu from where you can select new class,package,interface

    0 讨论(0)
  • 2020-12-28 15:35

    You can use the New Java Class wizard to create a Java class. It can be invoked in different ways:

    • By clicking on the File menu and selecting New → Class.
    • By right clicking in the package explorer and selecting New → Class.
    • By clicking on the class drop down button and selecting class.

    The shortcuts for basic Eclipse file management actions are different between Mac and Windows/Linux environment.

    Check it out:

    Visit for more Eclipse shortcuts.

    0 讨论(0)
  • 2020-12-28 15:36

    Ctrl+n will launch new wizard, there you can select the class/any to create new document.

    0 讨论(0)
提交回复
热议问题