LTEX+ Extension for VS Code: Grammar/Spell Checker Using LanguageTool with Support for LATEX, Markdown, and Others
LTEX+ provides offline grammar checking of various markup languages in Visual Studio Code using LanguageTool (LT). LTEX+ currently supports:
- LATEX, BibTEX, ConTEXt and rsweave
- Markdown, MDX and Quarto
- Typst
- AsciiDoc
- Org and Neorg
- reStructuredText
- XHTML
In addition, LTEX+ can check comments in many popular programming languages (optional, opt-in).
The difference to regular spell checkers is that LTEX+ not only detects spelling errors, but also many grammar and stylistic errors such as:
This is an mistake.The bananas is tasty.We look forward to welcome you.Are human beings any different than animals?
A classic use case of LTEX+ is checking scientific LATEX papers, but why not check your next blog post, book chapter, or long e-mail before you send it to someone else?
Find more information and documentation about LTEX+ on the official website.
Until version 13.1.0, Julian Valentin developed LTEX+ as LTEX. LTEX is a fork of the abandoned LanguageTool for Visual Studio Code extension. This extension would not have been possible without the work of Adam Voss† and Julian Valentin.
- Comes with everything included, no need to install Java or LanguageTool
- Offline checking: Does not upload anything to the internet
- Supports over 20 languages: English, French, German, Dutch, Chinese, Russian, etc.
- Issue highlighting with hover description
- Replacement suggestions via quick fixes
- User dictionaries
- Multilingual support with babel commands or magic comments
- Possibility to use external LanguageTool servers
- Extensive documentation
- 64-bit Linux, Mac, or Windows operating system
- VS Code 1.82.0 or newer
- Optional:
- If you want to check documents written in a markup language that VS Code does not support out-of-the-box (e.g., LATEX), install an extension that provides support for that language (e.g., LaTeX Workshop Extension for VS Code) in addition to this extension.
- Install the requirements listed above
- Install this extension (see download options)
- Reload the VS Code window if necessary
- Open a LATEX or a Markdown document, or open a new file and change the language mode to
LaTeXorMarkdown(open the Command Palette and selectChange Language Mode) - Wait until ltex-ls has been found; if necessary, LTEX+ downloads it for you. Alternatively, you can choose offline installation.
- Grammar/spelling errors will be displayed! (if there are any)
- General Information
- Overview
- Installation & Usage
- Supported Languages
- Advanced Usage
- Settings
ltex.enabledltex.languageltex.dictionaryltex.disabledRulesltex.enabledRulesltex.hiddenFalsePositivesltex.bibtex.fieldsltex.latex.commandsltex.latex.environmentsltex.markdown.nodesltex.configurationTargetltex.additionalRules.enablePickyRulesltex.additionalRules.motherTongueltex.additionalRules.languageModelltex.additionalRules.neuralNetworkModelltex.additionalRules.word2VecModelltex.languageToolHttpServerUriltex.languageToolOrg.usernameltex.languageToolOrg.apiKeyltex.ltex-ls.pathltex.ltex-ls.logLevelltex.java.pathltex.java.initialHeapSizeltex.java.maximumHeapSizeltex.sentenceCacheSizeltex.completionEnabledltex.diagnosticSeverityltex.checkFrequencyltex.clearDiagnosticsWhenClosingFileltex.statusBarItemltex.trace.server
- FAQ
- General Questions
- What's the difference between vscode-ltex, ltex-ls, and LanguageTool?
- Why does LTEX+ have such a high CPU load?
- How can I check multiple languages at once?
- Why does LTEX+ check in a different language than expected?
- How can I fix multiple spelling errors at the same time?
- How can I prevent
\text{...}in math mode from producing false positives? - What does LTEX+ stand for?
- Where can I ask a question that's not answered here?
- Questions about vscode-ltex
- General Questions
- Code of Conduct
- vscode-ltex-plus
- ltex-ls-plus (LTEX+ LS)
