Note. This question concerns not only VB.NET, but also the specific function of the Visual Studio 2015 Basic editor.
I have legacy code that looks like this:
Dim someText =
" a " &
" AND b " &
" AND cd " &
" AND efg " &
" AND h "
Since Roslyn has implemented multi-line string literals in VB, I want to convert it to this:
Dim someText =
" a
AND b
AND cd
AND efg
AND h "
(I know that the two are not completely equivalent, since the second contains extra line breaks and spaces. This is good. Suppose the content is something like SQL or HTML, where the extra spaces do not matter.)
Now my approach will be as follows: first, I block, select the start quotation marks (except the first) and replace them with a space:
Dim someText =
" a " &
AND b " &
AND cd " &
AND efg " &
AND h "
a, -, poof :
Dim someText =
" a " &
And b " &
AND cd " &
AND efg " &
AND h "
"" .
, . , . , (, , VS 2015 Update 2), , , .
- Visual Studio ? , - (Tools/Options/Text Editor/Basic/Advanced), ?