How to surround code by curly braces in IntelliJ IDEA? Is there any keyboard-shortcut for such operation?
Just click as the below 2 steps
1, CTRL + ALT + T 2, then press ALT + A at the same time.
Hope to help you.