As shown there http://blogs.telerik.com/blogs/posts/10-04-16/justcode-q1-sp1-ndash-typing-assistance-improvements.aspx
bracket completion works even when there is already a statement allowing you to easily surround the statement with curly braces.
This is really cool and it works, however autoformatting doesn't seem to play nice. Perhaps I'm missing out on some settings but I haven't changed much from the defaults. Let me explain:
You start with this:
Then you type an opening bracket and JC automatically adds a closing one and moves the cursor at the end of the statement:
So far so good and it's even better than what's shown in the old blog post as the cursor was not moved there so as you hit Enter the cursor remained at the begining of the statement. Now it's at the end and when I hit Enter I get this:
Kind of asking for a fix, ain't it? ;)
The expected behavior is:
with the cursor at the end so you can hit Enter once again and contunue typing some new statements inside the block.