whitespace formatter

Many thanks to the team for a significant product upgrade. After using R# 2 for a few days, I've come across an annoyance I can't seem to configure my way around.

The new code formatter allows you to specify spacing style around operators, so that statements like:

a=b+c;

will become:

a = b + c;

In many cases this is exactly the behavior I want, but in others I prefer to align the operators for readability (this probably won't come through exactly as the forum editor uses a variable width font):

string str = "Hello";
int i = 0;

Unfortunately R# strips the additional space between the variable name and the equals sign.

The options dialog only allows me to turn off or on the spacing behavior around braces; there is no way to tell it to leave my code alone in these cases.

Any help is appreciated.

1 comment
Comment actions Permalink

Unfortunately, this alignment style wasn't implemented in 2.0
We are going to do this in the next major version

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

Many thanks to the team for a significant product upgrade. After using R#
2 for a few days, I've come across an annoyance I can't seem to configure
my way around.

>

The new code formatter allows you to specify spacing style around
operators, so that statements like:

>

a=b+c;

>

will become:

>

a = b + c;

>

In many cases this is exactly the behavior I want, but in others I prefer
to align the operators for readability (this probably won't come through
exactly as the forum editor uses a variable width font):

>

string str = "Hello";
int i = 0;

>

Unfortunately R# strips the additional space between the variable name and
the equals sign.

>

The options dialog only allows me to turn off or on the spacing behavior
around braces; there is no way to tell it to leave my code alone in these
cases.

>

Any help is appreciated.



0

Please sign in to leave a comment.