Problem Solving:. VScode in LaTeX format Formatting failed Please refer to LaTeX Workshop Output for details.

First, the problem description (Describe)

After installing the plug-in VScode LaTeX, if the press cmd + Shas been saved, the following error
Here Insert Picture Description

Second, the solution (Solution)

Method a: Close LaTeX code formatting function

  "[latex]": {
        "editor.formatOnSave": false,
    }

Method two: once, LaTeX code is automatically formatted (recommended)

Sequentially execute the following commands in the terminal, then the error does not occur, LaTeX code is also automatically saved when formatted

sudo cpan Log::Log4perl
sudo cpan Log::Dispatch
sudo cpan YAML::Tiny
sudo cpan File::HomeDir
sudo cpan Unicode::GCString

Here Insert Picture Description


Before formatting
Here Insert Picture Description
after formatting
Here Insert Picture Description

Third, the references (Reference)

Published 308 original articles · won praise 149 · Views 150,000 +

Guess you like

Origin blog.csdn.net/qq_43827595/article/details/105326845