I'm trying a simple regex search with "\n" to find a line feed and some String(s) around. In a single file search it´s working fine (see screenshot on the right), but in a folder search I get the error "Literal '\n' not allowed" (see screen shot on the left). Any idea?
Screenshot
Cheers Daniel
I believe this error is coming from ripgrep, which VSCode uses by default for this search function. I found this comment by the owner, referencing \n
in particular.
Fortunately, you can tell VSCode not to use ripgrep in your settings.json
:
"search.useRipgrep": false
With ripgrep disabled, \n
should work as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With