tex-ls for VS Codetex-ls helps you write LaTeX documents and manage BibTeX references in VS Code. It suggests commands as you type, points out mistakes, and helps you find your way around a document. Get started
If VS Code asks whether you trust the folder, allow it if it is your own project or comes from someone you trust. tex-ls starts automatically. You can also open the extension in the Marketplace. Use the desktop version of VS Code. You do not need to install a compiler to use these editing tools. Creating and viewing PDFs still needs a separate tool. While you write
To tidy up indentation and spacing, right-click your document, choose Format Document With..., then tex-ls. You can undo the changes as usual. Useful commandsOpen the Command Palette from the View menu and type
Settings and helpThe defaults are enough to get started. For preferences, open Settings and
search for If you see duplicate suggestions or error messages, another LaTeX extension may be providing the same features. Disable its overlapping features, or disable that extension for this workspace. If something is not working, report the problem. Include your operating system, what you expected, and what happened. A short example that shows the problem helps. For formatting on save, remote computers, and other setup options, see the additional setup guide. |