In the visual studio settings designer, how can a setting with string type be set to the newline character? Entering \n
results in the string being set to literally \n
- the escape sequence doesn't seem to have meaning in the setting seditor. So how do I set a setting's value to a non-printable character?
The settings designer edits the App.config (xml) file and the Settings.settings file. I thought about editing the App.config file directly, but entering \n
there again sets the string to literally \n
.
Click the down arrow in the Default value edit box. To get this (note the gray text):