Any Visual Studio 2010 extension for automatic concatenation on a new line?

I have this question about visual studio 2010 ... in mono develop, when I have a line like this:

string s = "hello, how are you"; 

and if I press the enter key at the beginning of "how ...", the code will automatically change to this:

 string s = "hello, " + "how are you?"; 

Is there some kind of extension in visual studio 2010 for this automatic concatenation on a new string line?

Thanks!

+4
source share
1 answer

Do you expect any escape sequences on your line? If not, you can simply use Verbatim String Literal :

 string s = @"Hello, how are you?"; 

Then you do not need the VS extension.

Obviously, this will only work if you are not interested in the extra spaces that will be added. If you just need to split the lines in the code, but have them on the same line in the resulting application, this will not work.

+2
source

All Articles