Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single backslash #57

Closed
ukandrewc opened this issue Nov 19, 2018 · 4 comments
Closed

Single backslash #57

ukandrewc opened this issue Nov 19, 2018 · 4 comments

Comments

@ukandrewc
Copy link

ukandrewc commented Nov 19, 2018

Can you add an option to only use a single backslash during insertion.
I just need \path\ not \\path\\

Thanks

@mihai-vlc
Copy link
Owner

Can you please provide an use case for it ?

The way we have it right now it will insert \\ if you are in a quoted string, otherwise it will insert \

@smandon
Copy link

smandon commented May 6, 2019

I second this.

A use case: windows bat files which do not require escaping in quoted string.

@byehack
Copy link

byehack commented Aug 30, 2022

Another bug maker situation is when we are in raw-string-literal.
raw strings already ignores escape character, so we don't need to use double backslash!
image

@mihai-vlc
Copy link
Owner

this has been fixed in v1.21.0
Please try it out and reopen if you notice any issues.

the path-autocomplete.useSingleBackslash preference has been introduced to control this.

I also tried to add some detection for that raw-string-literal use case listed above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants