How to disable adding new lines when I type an open-bracket

Easy Question:

With the current version in options I've turned this over everywhere I am able to but my
"else"'s still seem to generate line feeds. C#.

Perhaps easier is to enable me to use the VS2010 settings I set for inserting new lines or not for types and for brakets and bracket completion, not the ReSharpener ones at least for cases where I've set them in VS, those are fine. Can I just disable this setting (only) in ReSharpener?

Also the web based help isn't doing so well in IE9.

Thanks.

3 comments

Hello David,

Could you please clarify what do you mean by 'my else's seem to generate
line feeds'? Could you please provide the scenario when a line feed gets
added by ReSharper? As to web help appearance under IE 9, we will fix this
problem as soon as possible. Thank you!

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

Easy Question:

With the current version in options I've turned this over everywhere I
am able to but my "else"'s still seem to generate line feeds. C#.

Perhaps easier is to enable me to use the VS2010 settings I set for
inserting new lines or not for types and for brakets and bracket
completion, not the ReSharpener ones at least for cases where I've set
them in VS, those are fine. Can I just disable this setting (only) in
ReSharpener?

Also the web based help isn't doing so well in IE9.

Thanks.

---
Original message URL:
http://devnet.jetbrains.net/message/5300105#5300105



0

Prior to installing resharpener I'm using mostly what resharpener calls K&R style in VS, which works:
if (logicalTest) {
} else {
}

After installing Resharpener any reformatting does this

if (logicalTest) {
} else
{
}

Which is not what I want.
Screens lately are wider than they are tall so currently I prefer to use less total number of lines.

I'm sure it's just a setting somewhere...

Also when I type
if (logicalTest) {

if it's going to put in brackets for me I'd prefer it put them in the way I want them formatted,
right now it does

if (logicalTest) {}

What would make the most sense is if it put them in the way I have my formatting set up

if (logicalTest) {

}

Is that also a setting?

The last thing is that the intellisense seems to pop up right where I am trying to type so I can't actually see what I'm looking on, unlike VS's intellisense that pops up on a different line. Is there a way to set this also? I haven't used resharpener in this version so I was testing it out...

Thanks.

0

Hello David,

I'm afraid I couldn't reproduce this behavior. Could you please export your
code style settings into an xml file (under ReSharper | Options | Languages
| Common | Code Style Sharing) and attach it here? As to your second question,
if you have 'Auto-insert closing brace: on typing after an opening brace'
option turned on ReSharper always inserts the brace on the same line. You
can then just press enter and the braces will get formatted according to
your code style settings. Thank you!

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

Prior to installing resharpener I'm using mostly what resharpener
calls K&R style in VS, which works:

if (logicalTest) {

} else {

}

After installing Resharpener any reformatting does this

if (logicalTest) {
} else
{
}
Which is not what I want.
Screens lately are wider than they are tall so currently I prefer to
use less total number of lines.
I'm sure it's just a setting somewhere...

Also when I type
if (logicalTest) {
if it's going to put in brackets for me I'd prefer it put them in the
way I want them formatted, right now it does

if (logicalTest) {}

What would make the most sense is if it put them in the way I have my
formatting set up

if (logicalTest) {

}

Is that also a setting?

The last thing is that the intellisense seems to pop up right where I
am trying to type so I can't actually see what I'm looking on, unlike
VS's intellisense that pops up on a different line. Is there a way to
set this also? I haven't used resharpener in this version so I was
testing it out...

Thanks.

---
Original message URL:
http://devnet.jetbrains.net/message/5300251#5300251



0

Please sign in to leave a comment.