I am encountering an issue with the LaTeX Workshop extension for Visual Studio Code. I'm attempting to format my .bib
files using the latex-workshop.bibalign
command, as per the guidelines provided in the LaTeX Workshop wiki.
However, when I run the command, I receive the following error message:
Command 'LaTeX Workshop: Align BibTeX file' resulted in an error
Expected ... but '@' found.
The error suggests a syntax issue with the BibTeX file, but I am unsure what's causing it or how to fix it. The file contains regular BibTeX entries; I haven't made any unconventional modifications.
Has anyone encountered this error before, or does anyone know what might be causing it? Any insights or suggestions on how to resolve this would be greatly appreciated.
Additional Info: I'm using MiKTeX on Windows 10, and my .bib
files are a mixture of BibTeX and BibLaTeX.
P.S. I have also posted this question here on LaTeX WorkShop GitHub repository discussions and here on r/LaTeX subreddit.
Xurl=
instead of%url=
. And if you want to comment a full entry you can simply remove the @ from the type.%\s*
regular expression (RegEx) and replaced them withX
. Now, it works like a charm! But the question arises then: how am I supposed to comment something out in my.bib
files? Is it a bug that we should report?