Reputation:
Does anyone know a reason why my Eclipse does not preload
public static void main(String[] args)
when I create a new class? What can I do to make it appear automatically?
Upvotes: 7
Views: 40635
Reputation: 121
I think the best practise is to use only keyboard. It makes workflow a lot faster.
Ctrl+n
(left)Alt+v
to easily tick checkbox for - public static void main(String[] args)
[enter]
Finish and voila class is ready...Upvotes: 3
Reputation: 463
Type main
and press ctrl+space. The eclipse content assist will pop up with main method. Press enter.
Upvotes: 28
Reputation: 208974
"what can i do to make it appear automatically? "
public static void main(String[] args)
Upvotes: 16