What does the following setting do in Visual Studio?
Tools > Options > Text Editor > C# > Advanced > Editor Help > Fix text pasted into string literals (experimental)
I didn't see it "fix" things I paste into a " "
. Perhaps in certain cases?
CodePudding user response:
This attempts to escape characters inserted into string literals that are not legal there, such as quotes or single backspaces. Unfortunately, the option pages are very poorly documented. The documentation page states
Not all options may be listed here.
Which, at least, is honest...
CodePudding user response:
This is a built-in text repair option of visual studio, which is used to repair the text pasted into the solution to prevent garbled characters due to inconsistent encoding sets or other reasons. However, in actual use, most of the garbled characters need to be manually operated, which can be easily solved. So this option is not widely useful and is still experimental. Finally, it is recommended to check this option, which may help you spend more energy on business development.