(MacTex/MiKTeX + VSCode + LaTeX Workshop)

All you need are MacTeX/MiKTeX and LaTex Workshop Extension

Procedure

1. Install local LaTeX environment

2. Install LaTeX Workshop VS Code extension.

Reference Link

  1. https://mathjiajia.github.io/vscode-and-latex/
  2. Visual Studio Code (vscode)配置LaTeX

Troubleshooting

  1. Manually add path if needed
echo 'export PATH="/usr/local/texlive/2024/bin/universal-darwin:$PATH"' >> ~/.zshrc
source ~/.zshrc

You don’t need to manually add path in config file.

Reboot your mac if your LaTex Workshop still not work properly.