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?
Asked
Active
Viewed 444 times
1
Kohei TAMURA
- 4,778
- 6
- 23
- 44
Branky
- 353
- 8
- 23
3 Answers
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
- 25,191
- 19
- 103
- 139
0
Yes, just type sout and press tab button the main method with complete signature will be generated for you.
Aamir
- 2,194
- 1
- 21
- 48
0
By default configuration shortcut for public static void main(String args[]) is:
psvm + TAB
psvm stands for Public Static Void Main
gandra404
- 5,067
- 10
- 47
- 73