How to surround code by curly braces in IntelliJ IDEA? Is there any keyboard-shortcut for such operation?
Yes, try Ctrl+Alt+T (Surround With), then A (Curly Braces).