Editor intelligence
Autocomplete, and everything around it. What we do, what we don’t.
Texlab is the reference language server for LaTeX. Here is every feature it offers next to ours, marked honestly, followed by what we can do only because we own the compiler.
- 47 / 63features we have in full
- 3partly there
- 13not yet
- 43 / 63texlab, for reference
Completion
What the editor offers as you type a backslash, a brace or a key.
| Feature | Texlab | Volt | Effort | Notes |
|---|---|---|---|---|
| Command completion | Yes | Yes | Done | After a compile, completion uses the engine’s live definitions, including project and package macros. A built-in command list is available before the first compile. Texlab uses shipped metadata plus a text scan. |
| Environment completion (\begin{ / \end{) | Yes | Yes | Done | Built-ins work before the first compile; engine environments merge in after. |
| Label completion (\ref, \eqref, \cref …) | Yes | Yes | Done | From the cross-file project graph, no compile needed. The shared reference family covers 30 command names, including cleveref, varioref and nameref (TAR-1481). |
| Citation key completion (\cite …) | Yes | Partial | Medium | Author, year and title are shown for supported commands when the runtime bibliography index is available. Completion and OpenAlex still share a fixed 19-command trigger; later groups of commands such as \cites are missing. TAR-1559 connects both to the engine-aligned citation family. |
| File path completion (\includegraphics, \input, \bibliography …) | Yes | Yes | Done | From the workbook file tree, image / .bib / .tex ranked first. LaTeX documents only, not .cls / .sty. |
| \input / \include name completion | Yes | Yes | Done | Every workbook file, filtered per command (.tex for \input, .bib for \bibliography, images for \includegraphics), extension dropped where LaTeX allows. |
| Package names in \usepackage{} / \documentclass{} | Yes | Yes | Done | Curated list of ~230 packages and 38 classes with one-line descriptions. Already-loaded packages are marked and ranked lower. |
| Option and argument completion (\includegraphics[…]) | Yes | Yes | Done | Package/class options and supported key=value families come from the loaded packages, with boolean and choice values where their records provide them. Before a compile only common \includegraphics keys are offered. hyperref options disabled at document start keep their values (\hypersetup{colorlinks=} offers true / false). |
| Auto-insert matching \end{} | Yes | Yes | Done | Accepting a \begin{ completion or pressing Enter after \begin{name} adds the \end, unless the environment is already balanced. One undo step. |
| Existing labels offered inside \label{} | Yes | Yes | Done | Existing labels from this file and its siblings, marked “already defined” to avoid duplicates. |
| Snippets with tab stops | Yes | Yes | Done | Real tab stops (Tab / Shift-Tab) for \frac, \href, \section + label, figure, table, tabular, equation, \newcommand and more. |
| Math-mode aware symbol completion | Partial | Yes | Done | Math symbols rank first inside $…$, \[…\] and math environments and sink in text; \text{} inside math counts as text. |
| Glossary and acronym commands | Yes | Yes | Done | \gls, \Glspl, \acrfull, \ac and friends complete every \newacronym, \newglossaryentry, \newabbreviation and \acrodef in the project, with hover. After a compile the engine’s glossary records merge in, adding entries your own macros made. |
| Index entry completion (\index{…}) | No | No | Medium | Planned (TAR-1560). Complete existing index entries and subentries (a!b). The engine first needs to export index uses; the current symbols records do not contain them. |
Editing aids
Things that act on the text rather than complete it.
| Feature | Texlab | Volt | Effort | Notes |
|---|---|---|---|---|
| Rename: labels, commands, environments and citation keys | Yes | Yes | Done | F2 or right-click plans one project-wide change and one Undo. Citation rename updates .bib entry keys and citation uses (TAR-1515). Collisions and unsafe edits are refused. Label-record readiness and pre-first-compile behavior still need acceptance coverage (TAR-1361). |
| Document highlight (all uses of the symbol under the cursor) | Yes | Yes | Done | Labels, citation keys, macros and environments; the definition is marked more strongly than uses. |
| Selection range (smart expand / shrink) | Yes | No | Medium | Planned (TAR-1563). Expand and shrink selections through LaTeX groups, arguments, math and environments using the existing syntax infrastructure. |
| Code folding by section and environment | Yes | Yes | Done | Folds environments, sections up to the next heading of the same level, the preamble and long comment blocks. |
| Semantic highlighting (your macros vs package vs kernel vs undefined) | No | No | Medium | Planned (TAR-1564). Style commands using the engine’s definition origins, respecting project redefinitions. Missing or stale compiler records must not turn valid commands into false undefined markers. |
| Bracket matching and syntax highlighting | No | Yes | Done | Editor concerns, not LSP ones; listed so the row isn't missing. |
| Signature help (argument hints while typing) | No | Yes | Done | Typing { [ or , after a command (or moving into its arguments) shows which argument you are in, the count and the optional default, above the cursor; Esc closes it. Read from the definition the engine ran: \def, \newcommand with its default, \DeclareRobustCommand and xparse specs, yours and packages'. Before the first compile, your own \newcommand / \def / \NewDocumentCommand text. Delimited \def parameters and verbatim or embellishment xparse arguments show nothing. |
| Formatting (latexindent, tex-fmt, BibTeX) | Yes | No | Hard | An explicit non-goal in our plan today. |
| Colour preview for \definecolor | Yes | Yes | Done | Swatches on \definecolor, \textcolor, \colorbox, mixes like red!50!blue and tikz fill=/draw=, plus colour-name completion. After a compile the engine’s colours win, including palettes a package option loaded (dvipsnames) and the value xcolor really stored. |
Hover and hints
Information shown without leaving the line.
| Feature | Texlab | Volt | Effort | Notes |
|---|---|---|---|---|
| Hover: commands and environments | Yes | Yes | Done | Compiled definitions and provenance after a compile, with built-in command information available before compilation. |
| Hover: labels (what does this \ref point at) | Yes | Yes | Done | Number, counter and page from the last compile. Labels made by your own macros resolve too, with a jump to the line that made them. |
| Hover: citations | Yes | Yes | Done | Formatted reference (authors, year, title, venue) with LaTeX accents cleaned up, plus a jump to the .bib entry. |
| Hover: package documentation | Yes | Partial | Unknown | One-line doc for \usepackage / \documentclass, no per-package docs. |
| Hover: symbol image preview (\alpha, \sum …) | Yes | Yes | Done | KaTeX-rendered glyph with name and category in the hover card. User redefinitions show no built-in glyph. |
| Inlay hints (label and reference previews) | Yes | Yes | Done | After a compile each \ref shows what it typesets as (“Fig. 4”, “(3)”, “p. 7”), read from the engine’s label records. Numbers are never guessed before one. |
| Inlay hints: citations (“[3]”, “Knuth 1984”) | No | No | Medium | Planned (TAR-1565). Show the actual compiled citation label, including numeric and author/year styles. Citation-use records contain keys and sites today, not the rendered labels needed for these hints. |
| Hover: real values of lengths and counters | No | No | Medium | Planned (TAR-1566). Show the last compile’s final named length or counter value. The engine needs to export a typed value record; internal checkpoint data is not an editor contract. |
| Hover: macro call counts and colour alias chains | No | Yes | Done | After a compile a macro you defined shows “Called 412× in the last compile”, summed over every call site (“at least” when the engine's table was full). Hidden once the file is edited, until the next compile. A colour shows its alias chain (accent → brand → #1f6feb) and, for \definecolorseries, the series method and step. |
Diagnostics and fixes
Telling you what is wrong, and offering to fix it.
| Feature | Texlab | Volt | Effort | Notes |
|---|---|---|---|---|
| Compile errors and warnings inline | Partial | Yes | Done | Texlab parses the build log. We consume structured engine diagnostics with source locations and traces. Columns depend on the input path; macro-expansion columns remain TAR-1447, and XeTeX stream coverage remains TAR-1441. |
| Undefined \ref and \cite | Yes | Yes | Done | Checked client-side as you type, no compile needed. |
| Duplicate label detection | Yes | Yes | Done | |
| Unused label detection | No | Yes | Done | Faint hint on a \label no \ref-family command uses anywhere in the project. Texlab does not have it. |
| chktex lint | Yes | No | Hard | An explicit non-goal in our plan today. |
| Quick fixes | Partial | Yes | Done | Project-wide "did you mean" suggestions for commands, labels and citation keys become fixes in the lint card (TAR-1482). This is not a general lightbulb or language-server code-action menu. |
| Quick fix: add the missing \usepackage | No | No | Medium | Planned (TAR-846). Offer a missing package for an undefined command, backed by an admitted offline command-to-package index. A run cannot know definitions from packages it never loaded. |
| Unused \usepackage hint | No | Yes | Medium | Shipped (TAR-847), pdfTeX only (LuaTeX TAR-1617, XeTeX TAR-1618). A faint hint on a package name when the last compile called no command from it, counting uses through your own macros and helper files. Silent before the first compile, when the engine reports no data or capped data, for command-less packages (fontenc, geometry, babel...), and when the load carries options. |
| Unknown option or key, wrong value type | No | No | Medium | Planned (TAR-799). \usepackage[nonsense]{x}, an unknown key=value key, or a non-number given to a number key, checked against what the loaded packages actually declared. Silent for packages that accept any option. Also flags duplicate labels and undefined references whose keys your own macros built. |
| Unused \newcommand, glossary entries and images | No | No | Medium | Planned (TAR-800). Faint hints on definitions the compile never used and project images it never read, from the engine's macro-use and file records. Uses that happen inside your own macros count. |
| Problems pane | No | Yes | Done | Agrees with the inline tooltip (tested). |
Build and preview
Getting from source to PDF and back.
| Feature | Texlab | Volt | Effort | Notes |
|---|---|---|---|---|
| Build on demand | Yes | Yes | Done | Texlab shells out to latexmk or tectonic. We run RocTex, in the browser or natively. |
| Build on save / auto-compile | Yes | Yes | Done | Edit-driven auto-compile with a zero debounce on our engine. |
| Forward search (source → PDF) | Yes | Yes | Done | SyncTeX, matched to the glyph. |
| Inverse search (PDF → source) | Yes | Yes | Done | |
| Works with no TeX installation | No | Yes | Done | Texlab cannot compile without a TeX distribution. |
| Works with any editor (VS Code, Neovim, Emacs …) | Yes | No | Hard | Tracked in TAR-748: an editor-free core, a browser worker and a stdio language server. Existing LSP-shaped helper functions are not a shipped server for other editors. |
Beyond the language server
Only in Volt
These are not autocomplete, but they are why the autocomplete is more accurate. Texlab has none of them.
- Yes
Completion from live definitions
After a compile, live compiler definitions augment completion and hover with recorded project and package symbols. Built-in command information remains available before compilation.
- Yes
Macro-expansion tracebacks
An error can show the chain of expanding macros and their definition sites. Project-file locations are navigable; opening distribution-package source is separate work in TAR-801.
- Yes
Typed diagnostic codes
Supported engine paths emit stable, generated codes and structured facts. Coverage across every engine and error site remains part of the compiler-driven editor project.
- Yes
Math preview
KaTeX preview of the math under the cursor.
- Yes
Spellcheck that understands LaTeX
Skips math and commands. Texlab leaves this to ltex-ls.