Reputation: 3294
i have this question about visual studio 2010... in mono develop, when i have a string like this:
string s = "hello, how are you";
and if i press enter key on the beginning of the "how...", the code changes automatically to this:
string s = "hello, " +
"how are you?";
Is some extension in visual studio 2010 for this auto concatenation on a new string line?
Thanks!
Upvotes: 5
Views: 1219
Reputation: 6348
Are you expecting any escape sequences in your string? If not, you can just use a Verbatim String Literal:
string s = @"Hello,
how are you?";
Then you have no need for a VS extension.
Obviously, this will only work if you are not concerned with the additional whitespace which will get added. If you need to just split the lines in code, but have them on one line in the resulting application, this will not work.
Upvotes: 2