Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse, shortcut to create new Java class

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 quite annoying have to go through the 'New..' wizard.

Here's the image of the dialog I want to reach.

enter image description here

like image 521
giampaolo Avatar asked Sep 10 '25 14:09

giampaolo


2 Answers

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.

like image 77
phihag Avatar answered Sep 12 '25 05:09

phihag


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

like image 22
Sameer Surjikar Avatar answered Sep 12 '25 05:09

Sameer Surjikar