Skip to content

Instantly share code, notes, and snippets.

@DoganM95
Last active May 1, 2022 10:42
Show Gist options
  • Save DoganM95/b5f17393e3a641b01c1b5427c4f9869f to your computer and use it in GitHub Desktop.
Save DoganM95/b5f17393e3a641b01c1b5427c4f9869f to your computer and use it in GitHub Desktop.
Windows path fixer using regex in vscode, so each single \ becomes \\ ->e.g. C:\Windows\System32 becomes C:\\Windows\\System32

search for ([^\\])(\\)([^\\])

replace with $1\\\\$3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment