Reputation: 963
I know that Visual Studio has some tools for fast surrounding by code snippets, for example how to do more faster try/catch code blocks. but I can't find a hotkey combination to do this. Who knows the hotkey combination for try/catch?
Upvotes: 51
Views: 33063
Reputation:
For Mac users, select the code that you want to surround -> press cmd+shift+P, type: surround with, Select a snippet: try-catch
Upvotes: 1
Reputation: 1736
Press "Ctrl + K, S" and then in drop down menu double click "try" - it's a "try-catch" template.
Upvotes: 112