Is there a way to automatically escape special characters when pasting text in json strings in .json files?

Hello,

I am using Rider.Net but this question applies to all IDEs that support editing json files, is there a shortcut that allows me to paste a windows path in a json string and have the back-slashes automatically escaped? This happens automatically when I paste a path in a C# string in a .cs file but not in .json files. Is there a way to enable this behaviour for .json files?

 

Thanks

0
3 comments

I found the setting:

0

Hello, 

It seems the last post is not complete. Would you mind sharing your findings again? I believe it will surely help others who have similar issues. 

Regards,

Tom

0

I pasted the screenshot in the other message but it didn't seem to go through, the image seemed to have been stripped out and for quite some time I had a message saying the posting is pending. So I gave up coming here. This time I used the image button to upload the screenshot.

1

Please sign in to leave a comment.