R# 6.1 new item template cursor in the wrong place

Just installed R# 6.1, and why on earth, when you create a new item (alt+insert class, interface, struct, enum), does the cursor now start down at the end next to the closing bracket instead of tabbed in, inbetween the two class brackets like before? Is there a way to change this?

Was this just a bug, or was it actually intended? It's really annoying.

2 comments
Comment actions Permalink

Hi Alexander,

Indeed, this feels like a recently introduced bug. I have issued a bug report that will hopefully be resolved for the next release.

Meanwhile, as a workaround, you can manually edit the predefined file templates. To do that:
1. Go to ReSharper | Templates Explorer
2. Open the File Templates tab.
3. Select an entry of an affected file template entry, and click Edit in the toolbar.
4. In the template editor, simply change the default formatting of the template

$HEADER$namespace $NAMESPACE$
{
  public interface $INTERFACE$ {$END$}
}

to

$HEADER$namespace $NAMESPACE$
{
  public interface $INTERFACE$
    {
        $END$
    }
}
0
Comment actions Permalink

Thank you so much for the detailed answer. This fixes the issue. Yes, I thought it might be a bug, because it didn't seem to make sense as default behavior. Now, at least, I have had my first lesson in editing the ReSharper templates. It is one area that I haven't taken full advantage of with ReSharper, but now that I see how easy it is, I'm ready to start creating some of my own templates!

Thank you.

0

Please sign in to leave a comment.