1

In eclipse by typing "main" and pressing Ctrl+Space you can generate main method, and there are lots of other shortcuts like this. Is there anything like this in intellij-idea? and how can I assign them?

Kohei TAMURA
  • 4,970
  • 7
  • 25
  • 49
Branky
  • 373
  • 8
  • 23

3 Answers3

0

Depending upon your key configuration, you can type J for the Templates.

Also see: What are the most useful Intellij IDEA keyboard shortcuts?

Community
  • 1
  • 1
Martin Marconcini
  • 26,875
  • 19
  • 106
  • 144
0

Yes, just type sout and press tab button the main method with complete signature will be generated for you.

Aamir
  • 2,380
  • 3
  • 24
  • 54
0

By default configuration shortcut for public static void main(String args[]) is:

psvm + TAB

psvm stands for Public Static Void Main

gandra404
  • 5,727
  • 10
  • 52
  • 76