I could swear I’ve seen people typing function headers and then hitting some key combination to auto-create function braces and insert the cursor between them like so:
void foo()_
to
void foo() { _ }
Is this a built-in feature?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out Resharper – it is a Visual Studio add-on with this feature, among many other development helps.
Also see C# Completer, another add-on.
If you want to roll your own, check out this article. Insane that one should have to do that, though.