The easiest way to replace $...$ to \(...\) #3418
Answered
by
James-Yu
sleepymalc
asked this question in
Q&A
-
I have been searching around for this seemingly basic feature, but I found nothing. Does anyone know how to do this? I'm imagining that there is some extension that can just do this on save, which will save tons of time. The closest thing I found is probably this, which is by no means efficient. |
Beta Was this translation helpful? Give feedback.
Answered by
James-Yu
Aug 8, 2022
Replies: 1 comment 2 replies
-
You can use this regex in vscode to search for all $$ pairs: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sleepymalc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use this regex in vscode to search for all $$ pairs:
(?<!\\)\$([^\r]*?)(?<!\\)\$
. Then\($1\)
or something else can replace them with\(
\)
.