<p>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:</p>

<pre><code>void foo()_
</code></pre>

<p>to</p>

<pre><code>void foo()
{
    _
}
</code></pre>

<p>Is this a built-in feature?</p>

[{'answer_id': 9488, 'author': 'Rob Cooper', 'author_id': 832, 'author_profile': 'https://Stackoverflow.com/users/832', 'pm_score': 2, 'selected': False, 'text': '<p>It can be achieved by using code snippets, some are already built in (try typing "svm" and hitting TAB-TAB)..</p>\n\n<p>There\'s a wealth of info on the net on creating these:</p>\n\n<p><a href="http://www.codinghorror.com/blog/archives/000419.html" rel="nofollow noreferrer">Jeff did a post himself here</a></p>\n\n<p>Have a google! I use them LOTS! :D</p>\n'}, {'answer_id': 9489, 'author': 'David McGraw', 'author_id': 568, 'author_profile': 'https://Stackoverflow.com/users/568', 'pm_score': 2, 'selected': False, 'text': '<p>Take a look at <a href="http://www.wholetomato.com/" rel="nofollow noreferrer">visual assist</a> as well.</p>\n'}, {'answer_id': 9491, 'author': 'pc1oad1etter', 'author_id': 525, 'author_profile': 'https://Stackoverflow.com/users/525', 'pm_score': 4, 'selected': True, 'text': '<p>Check out <a href="http://www.jetbrains.com/resharper/documentation/feature_map.html" rel="nofollow noreferrer">Resharper</a> - it is a Visual Studio add-on with this feature, among many other development helps.</p>\n\n<p>Also see <a href="http://www.knowdotnet.com/articles/csharpcompleter.html" rel="nofollow noreferrer">C# Completer</a>, another add-on.</p>\n\n<p>If you want to roll your own, check out <a href="http://www.developer.com/net/cplus/article.php/3347271" rel="nofollow noreferrer">this article</a>.  Insane that one should have to do that, though.</p>\n'}, {'answer_id': 9494, 'author': 'Luke', 'author_id': 327, 'author_profile': 'https://Stackoverflow.com/users/327', 'pm_score': 3, 'selected': False, 'text': '<p>The tools look nice (especially Resharper but at $200-350 ouch!) but I ended up just recording a macro and assigning it to ctrl+alt+[</p>\n\n<p>Macro came out like this:</p>\n\n<pre><code>Sub FunctionBraces()\n    DTE.ActiveDocument.Selection.NewLine\n    DTE.ActiveDocument.Selection.Text = "{}"\n    DTE.ActiveDocument.Selection.CharLeft\n    DTE.ActiveDocument.Selection.NewLine(2)\n    DTE.ActiveDocument.Selection.LineUp\n    DTE.ActiveDocument.Selection.Indent\nEnd Sub\n</code></pre>\n\n<p>Edit: I used the macro recorder to make this and it wasn\'t too bad</p>\n'}, {'answer_id': 12285187, 'author': 'PCPGMR', 'author_id': 323650, 'author_profile': 'https://Stackoverflow.com/users/323650', 'pm_score': 0, 'selected': False, 'text': '<p>I just created one based on @Luke\'s above. This one, you want to hit Enter then hit your key combination and it will insert:</p>\n\n<pre><code>if ()\n{\n\n}\nelse\n{\n\n}\n</code></pre>\n\n<p>And it will put your cursor in the parenthesis by the if statement.</p>\n\n<pre><code>Sub IfStatement()\n    DTE.ActiveDocument.Selection.Text = "if ()"\n    DTE.ActiveDocument.Selection.NewLine()\n    DTE.ActiveDocument.Selection.Text = "{"\n    DTE.ActiveDocument.Selection.NewLine(2)\n    DTE.ActiveDocument.Selection.Text = "}"\n    DTE.ActiveDocument.Selection.NewLine()\n    DTE.ActiveDocument.Selection.Text = "else"\n    DTE.ActiveDocument.Selection.NewLine(2)\n    DTE.ActiveDocument.Selection.Text = "{"\n    DTE.ActiveDocument.Selection.NewLine(2)\n    DTE.ActiveDocument.Selection.Text = "}"\n    DTE.ActiveDocument.Selection.LineUp(False, 7)\n    DTE.ActiveDocument.Selection.EndOfLine()\n    DTE.ActiveDocument.Selection.CharLeft(3)\nEnd Sub\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/9486', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/327/']