'Reformat Code' doesn't seem to work all the time...

For example, I'll have a statement ...

public string Property
{
get { return m_PropertyBacker; }
set { m_PropertyBacker = value;}
}

granted these are not the values I use, it is about that long in code
length. obviously the one-line syntax is easier for this scenario ...and I
have that specified in the ReSharper settings, yet it changes it to ...

public string Property
{
get
{
return m_PropertyBacker;
}

set
{
m_PropertyBacker = value;
}
}

...which is somewhat unnerving. To be quite honest this is my only real
problem. But it is a bit of an annoyance.



3 comments
Comment actions Permalink

Hi Derek,

Did you tried the code style option at
ReSharper->Options->Line Breaks->Place simple property on single line?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Derek" <derek@btacinc.com> wrote in message
news:cd3jt1$t83$1@is.intellij.net...

For example, I'll have a statement ...

>

public string Property
{
get { return m_PropertyBacker; }
set { m_PropertyBacker = value;}
}

>

granted these are not the values I use, it is about that long in code
length. obviously the one-line syntax is easier for this scenario ...and I
have that specified in the ReSharper settings, yet it changes it to ...

>

public string Property
{
get
{
return m_PropertyBacker;
}

>

set
{
m_PropertyBacker = value;
}
}

>

...which is somewhat unnerving. To be quite honest this is my only real
problem. But it is a bit of an annoyance.

>
>


0
Comment actions Permalink

never seen this happen.

what bugs me about ReformatCode is that each time the solution is opened, I need to check off the 3 checkboxes. Can the last state be maintained across vs.net sessions?

0
Comment actions Permalink

Will be fixed shortly

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"karl" <no_mail@jetbrains.com> wrote in message
news:27609101.1089820792799.JavaMail.itn@is.intellij.net...

never seen this happen.

>

what bugs me about ReformatCode is that each time the solution is opened,

I need to check off the 3 checkboxes. Can the last state be maintained
across vs.net sessions?


0

Please sign in to leave a comment.