If you ever found yourself writing a bunch of code and then realized you should have put it inside a try…catch block or wrote a bunch of tracing code that are not meant to production release, this shortcut will help to cut down the seconds of your life you’re wasting navigating and typing these code.
Ctrl + K + S
First thing you have to do is select the code you want to put inside a block (surround with). Then, press this shortcut to open up a selection list #if…#endif, try…catch, etc that you commonly use. You just need to select one of the selection. And voila, code is surrounded.
Cheers – Sy