IntelliJ - Live Template - main() method generation
Type “psvm” Ctrl+J will generate the main method.
Why “psvm”?
“public static void main”
IntelliJ - Live Template - main() method generation
Type “psvm” Ctrl+J will generate the main method.
Why “psvm”?
“public static void main”
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Nov | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||

Haha, Eclipse’s
Type “main” + Ctrl+Space feels better. Its 4 characters either way
You can create a new code template with ‘main’ and configure to output main method’s code.
Check File>Settings>Live Templates>other.
Click on add and create a new one with main and copy paste the same code in psvm.