First, the problem description (Describe)
After installing the plug-in VScode LaTeX, if the press cmd + S
has been saved, the following error
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
Before formatting
after formatting