Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Fix text pasted into string literals" - what does it do?

What does the following setting do in Visual Studio?

Tools > Options > Text Editor > C# > Advanced > Editor Help > Fix text pasted into string literals (experimental)

enter image description here

I didn't see it "fix" things I paste into a " ". Perhaps in certain cases?

like image 210
ispiro Avatar asked Oct 17 '25 12:10

ispiro


1 Answers

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...

like image 86
PMF Avatar answered Oct 20 '25 01:10

PMF



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!