Is there a decent way to declare a long single line string in C#, such that it isn\'t impossible to declare and/or view the string in an editor?
The options I\'m aware o
Use the Project / Properties / Settings
from the top menu of Visual Studio. Make the scope = "Application"
.
In the Value box you can enter very long strings and as a bonus line feeds are preserved. Then your code can refer to that string like this:
string sql = Properties.Settings.Default.xxxxxxxxxxxxx;