Skip to content

Dear Internet Explorer user: Your browser is no longer supported

Please switch to a modern browser such as Microsoft Edge, Mozilla Firefox or Google Chrome to view this website's content.

Create LaTeX documents in Visual Studio Code with LaTeX Workshop

If you need to write LaTeX on your machine, this can be achieved comfortably with Visual Studio Code and Windows Subsystem for Linux.

There is no better way to write equations for technical audiences than with LaTex. Unfortunately, finding good LaTex editors isn’t easy, but thankfully you can use Visual Studio Code and Windows Subsystem for Linux to set-up an easy-to-use LaTex coding environment.

Step 1: Install TeX Live

Tex Live is a package of software used to support LaTex code. Frankly, the installation instructions for Unix systems are horrendous, but there is an easier way for Linux users:

sudo apt install texlive-full

Note that this can take quite some time. If your installation gets to 99% and then apparently freezes at Pregenerating ConTeXt MarkIV format. This may take some time, don’t fret. Just press ENTER on the command line a couple of times, as recommended on AskUbuntu.com, and it’ll get going again.

Step 2: Install LaTeX Workshop

Open up Visual Studio Code and install LatexWorkshop. Restart Visual Studio Code and you should be able to edit and check LaTeX code as you write.

The LaTeX Workshop dashboard in Visual Studio Code, showing the code on the left and output on the right.
   

Comments

One response to “Create LaTeX documents in Visual Studio Code with LaTeX Workshop”

On 22 December 2024, Marcus Wong wrote: Hyperlink chain icon

Thanks for the super simple set of instructions – I remember the ordeal I went through trying to get LaTeX setup on Windows years ago, so glad to hear it’s a lot easier now.

Reply

Have Your Say

The following HTML is permitted:
<a href="" title=""> <b> <blockquote cite=""> <code> <em> <i> <q cite=""> <strike> <strong>

Comments will be published subject to the Editorial Policy.