Resharper deletes closing curly brace

When I start adding a property to a class, Resharper deletes the closing curly brace for that class.

That is, when I type "public string Name { get;" Resharper will delete the class's closing curly brace when I type the semicolon.

Is there a way to make it stop doing that?

Thanks,

Jim

3 comments

Hello Jim,

I wasn't able to reproduce this behavior with ReSharper 5.1.3. Could you
please tell me the exact version of ReSharper that you have installed? Could
you please disable all other add-ins/extensions except ReSharper and also
attach a screencast demonstrating this bejavior? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

When I start adding a property to a class, Resharper deletes the
closing curly brace for that class.

That is, when I type "public string Name { get;" Resharper will delete
the class's closing curly brace when I type the semicolon.

Is there a way to make it stop doing that?

Thanks,
Jim
---
Original message URL:
http://devnet.jetbrains.net/message/5287036#5287036



0

I'm using Resharper Build 5.1.3000.12

The exact situation is something like:

public class X

{

    public int Accessor { get;

}

I.e., there's nothing between the accessor definition and the class's closing curly brace.  When I type the semicolon after the "get", Resharper pulls the closing curly brace for the class up and uses it to close the Accessor, leaving the class one short as far as curly braces go.  So Resharper isn't really deleting the curly brace, just moving it, even though the effect is the same.  Probably this is connected to some of the options I'm using, like "auto complete on semicolon."

Thanks,

Jim

0

Hello Jim,

I'm afraid I wasn't able to reproduce this behavior. Could you please attach
the list of installed products from Help | About Visual Studio? Could you
please also export your code style options into an xml file (under ReSharper
| Options | Languages | Common | Code Style Sharing) and attach that file
here? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I'm using Resharper Build 5.1.3000.12

The exact situation is something like:

public class X
{
public int Accessor { get;
}
I.e., there's nothing between the accessor definition and the class's
closing curly brace.  When I type the semicolon after the "get",
Resharper pulls the closing curly brace for the class up and uses it
to close the Accessor, leaving the class one short as far as curly
braces go.  So Resharper isn't really deleting the curly brace, just
moving it, even though the effect is the same.  Probably this is
connected to some of the options I'm using, like "auto complete on
semicolon."

Thanks,
Jim
---
Original message URL:
http://devnet.jetbrains.net/message/5288160#5288160



0

Please sign in to leave a comment.