You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For snippets with escaped backslashes more backslashes are required than expected. For example, if the snippet has the format "a\\b" with n backslashes the outputs for various n are as follows:
Actually, no. Apologies, but it's messy. Textmate escapes a backslash with a backslash, so to insert one backslash, \ or \\ can be typed. Now comes, JSON which also needs a backslash to escape a backslash making this \\ or \\\\
jrieken
added
under-discussion
Issue is under discussion for relevance, priority, approach
and removed
bug
Issue identified by VS Code Team member as probable bug
labels
Aug 21, 2017
That is rather inconsistent and confusing, but if nothing can be done about this anyway because this is an issue with an external component this might as well be closed.
That is rather inconsistent and confusing, but if nothing can be done about this anyway because
Yeah, unfortunate. #25661 is about allowing to write snippets in another non-json format. That would remove the need for double backslashes. However, the backslash vs escaped backslash issue is how text mate works.
For snippets with escaped backslashes more backslashes are required than expected. For example, if the snippet has the format
"a\\b"
withn
backslashes the outputs for variousn
are as follows:Given that the output for 2 backslashes is identical to the output with 4 backslashes suggests that something is off here.
Steps to Reproduce:
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: