So, this:
cmd = new OdbcCommand( string.Format( @"
SELECT *
FROM Bobby_Tables
WHERE Name = {0}", "Little Bobby Drop Tables" ), odbcConnection );
gets formatted to:
cmd =
new OdbcCommand(
string.Format(
@"
SELECT *
FROM Bobby_Tables
WHERE Name = {0}",
"Little Bobby Drop Tables" ), odbcConnection );
I've looked at each of the options for line breaks and wrapping but I haven't been able to find the one to keep things on the same line as long as possible. I'm assuming that I missed the correct option. My Right margin (columns)
option is set to 100, which is plenty big.
Question: Is there a way to make it look like the original, and still get smart formatting on other things that actually do need to be wrapped?
I can manually put the
cmd = new OdbcCommand( string.Format (
@"
back on the first line and it'll leave the verbatim string on the next line happily. That's an alright compromise I guess.
question from:
https://stackoverflow.com/questions/11744690/resharper-line-breaks-and-wrapping 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…