LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.

Github星跟蹤圖

Visual Studio Code LaTeX Workshop Extension

version
downloads
installs
rating
license

Average time to resolve an issue
Percentage of issues still open

LaTeX Workshop is an extension for Visual Studio Code, aiming to provide core features for LaTeX typesetting with Visual Studio Code. It also has a sibling extension, LaTeX Utilities, providing extra features.

This project won't be successful without contributions from the community, especially the current and past key contributors:

Thank you so much!

Note that starting from version 7.0.0, LaTeX-Workshop requires at least VSCode 1.34.0.

Manual

The manual of the extension is maintained as a wiki

Features (Taster)

This is not a complete list but rather a preview of some of the coolest features.

  • Build LaTeX (including BibTeX) to PDF automatically on save.

  • View PDF on-the-fly (in VS Code or browser).

  • Direct and reverse SyncTeX. Click to jump between location in .tex source and PDF and vice versa.

  • Intellisense, including completions for bibliography keys (\cite{}) and labels (\ref{}).

  • LaTeX log parser, with errors and warnings in LaTeX build automatically reported in VS Code.

    • Linting
  • Snippets

    • A lot of LaTeX commands can be typed using snippets starting in \, then type part of the command to narrow the search.

    • Surround some selected text with a LaTeX command using ctrl+l, ctrl+w (+l, +w on Mac). A new menu pops up to select the command. This works with multi selections. The former approach using \ has been deprecated.

    • We also provide a few other snippets mechanisms

      • Greek letters are obtained as @ + letter. Some letters have variants, which are available as @v + letter. See here.

      • Common environments can be obtained by BXY where XY are the first two letters of the environment name, eg. BEQ gives the equation environment. If you want the star version of the environment, use BSXX, eg. BSEQ gives the equation* environment. See here.

      • Common font commands can be obtained by FXY where XY are the last two letters of the font command name, eg. FIT gives \textit{}. See here.

      • Many other maths symbols can be obtained with the @ prefix. See here.

  • Shortcuts

    • In addition to snippets, there are shortcuts provided by the extension that allow you to easily format text (and one or two other things).

  • When the current line starts with \item or \item[], hitting Enter automatically adds a newline starting in the same way. For a better handling of the last item, hitting Enter on a line only containing \item or \item[] actually deletes the content of the line. The alt+Enter is bind to the standard newline command. This automatic insertion of \item can be deactivated by setting latex-workshop.bind.enter.key to false.

  • Preview on hover. Hovering over the start tag of a math environment causes a mathjax preview to pop up.

GitHub

The code for this extension is available on github at: https://github.com/James-Yu/LaTeX-Workshop

Like this work?

License

MIT

主要指標

概覽
名稱與所有者James-Yu/LaTeX-Workshop
主編程語言TypeScript
編程語言TypeScript (語言數: 8)
平台
許可證MIT License
所有者活动
創建於2016-12-26 08:23:24
推送於2025-05-19 03:16:35
最后一次提交2025-05-19 11:16:35
發布數303
最新版本名稱v10.9.1 (發布於 )
第一版名稱v0.0.2 (發布於 )
用户参与
星數11.2k
關注者數58
派生數547
提交數6.2k
已啟用問題?
問題數3192
打開的問題數0
拉請求數928
打開的拉請求數1
關閉的拉請求數178
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?