by James-Yu

James-Yu / LaTeX-Workshop

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

6.3K Stars 331 Forks Last release: Not found MIT License 3.4K Commits 197 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Visual Studio Code LaTeX Workshop Extension

version downloads installs rating license

Average time to resolve an issue Percentage of issues still open

TeX Live on Windows TeX Live on macOS TeX Live on Linux Docker on Linux

LaTeX Workshop is an extension for Visual Studio Code, aiming to provide core features for LaTeX typesetting with Visual Studio Code.

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

Thank you so much!

Note that the latest version of LaTeX-Workshop requires at least VSCode



The manual of the extension is maintained as a wiki

Table of Contents

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.

build process gif

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

demo of preview feature

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

demo of SyncTeX

  • Intellisense, including completions for bibliography keys (
    ) and labels (

intellisense demo

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

error reporting demo

  • Linting

auto \item demo

  • Snippets

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

    auto \item demo - 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.

    wrap demo - We also provide a few other snippets mechanisms - Greek letters are obtained as

    . Some letters have variants, which are available as
    . See here.
    greek letters demo
    • Common environments can be obtained by

      are the first two letters of the environment name, eg.
      gives the
      environment. If you want the star version of the environment, use
      , eg.
      gives the
      environment. See here.

      BSAL demo

    • Common font commands can be obtained by

      are the last two letters of the font command name, eg.
      . See here.

      FBF demo

    • Many other maths symbols can be obtained with the

      prefix. See here.

    \frac shortcut demo \int shortcut demo

  • 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).

    \emph{} demo

  • When the current line starts with

    , hitting
    automatically adds a newline starting in the same way. For a better handling of the last item, hitting
    on a line only containing
    actually deletes the content of the line. The
    is bind to the standard newline command. This automatic insertion of
    can be deactivated by setting

    auto \item demo

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

    equation hover demo


The code for this extension is available on github at:

Like this work?



We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.