Awesome
<!-- - Copyright (C) 2019-2021 Julian Valentin, LTeX Development Community - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. --> <!-- #if TARGET == 'vscode' -->LT<sub>E</sub>X Extension for VS Code: Grammar/Spell Checker Using LanguageTool with Support for L<sup>A</sup>T<sub>E</sub>X, Markdown, and Others
<!-- #elseif TARGET == 'coc.nvim' --> <!-- # LT<sub>E</sub>X Extension for coc.nvim: Grammar/Spell Checker Using LanguageTool with Support for L<sup>A</sup>T<sub>E</sub>X, Markdown, and Others --> <!-- #endif --> <!-- #if TARGET == 'vscode' -->LT<sub>E</sub>X provides offline grammar checking of various markup languages in Visual Studio Code using LanguageTool (LT). LT<sub>E</sub>X currently supports BibT<sub>E</sub>X, ConT<sub>E</sub>Xt, L<sup>A</sup>T<sub>E</sub>X, Markdown, Org, reStructuredText, R Sweave, and XHTML documents. In addition, LT<sub>E</sub>X can check comments in many popular programming languages (optional, opt-in).
<!-- #elseif TARGET == 'coc.nvim' --> <!-- **LT<sub>E</sub>X** provides offline grammar checking of various markup languages in Vim/Neovim using [LanguageTool (LT)](https://languagetool.org/) and [coc.nvim](https://github.com/neoclide/coc.nvim). LT<sub>E</sub>X currently supports BibT<sub>E</sub>X, ConT<sub>E</sub>Xt, L<sup>A</sup>T<sub>E</sub>X, Markdown, Org, reStructuredText, R Sweave, and XHTML documents. In addition, LT<sub>E</sub>X can check comments in many popular programming languages (optional, opt-in). --> <!-- #endif -->The difference to regular spell checkers is that LT<sub>E</sub>X 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 LT<sub>E</sub>X is checking scientific L<sup>A</sup>T<sub>E</sub>X 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 LT<sub>E</sub>X on the official website.
LT<sub>E</sub>X is a successor (since it's a fork) of the abandoned LanguageTool for Visual Studio Code extension by Adam Voss<sup>†</sup>.
Features
- Supported markup languages: BibT<sub>E</sub>X, ConT<sub>E</sub>Xt, L<sup>A</sup>T<sub>E</sub>X, Markdown, Org, reStructuredText, R Sweave, XHTML
- Comment checking in many popular programming languages (optional, opt-in)
- 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
Requirements
<!-- #if TARGET == 'vscode' -->- 64-bit Linux, Mac, or Windows operating system
- VS Code 1.52.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., L<sup>A</sup>T<sub>E</sub>X), install an extension that provides support for that language (e.g., LaTeX Workshop Extension for VS Code) in addition to this extension.
How to Use
<!-- #if TARGET == 'vscode' -->- Install the requirements listed above
- Install this extension (see download options)
- Reload the VS Code window if necessary
- Open a L<sup>A</sup>T<sub>E</sub>X or a Markdown document, or open a new file and change the language mode to
LaTeX
orMarkdown
(open the Command Palette and selectChange Language Mode
) - Wait until ltex-ls has been found; if necessary, LT<sub>E</sub>X downloads it for you. Alternatively, you can choose offline installation.
- Grammar/spelling errors will be displayed! (if there are any)
Information & Documentation
- General Information
- Overview
- Installation & Usage
- Supported Languages
- Advanced Usage
- Settings
ltex.enabled
ltex.language
ltex.dictionary
ltex.disabledRules
ltex.enabledRules
ltex.hiddenFalsePositives
ltex.bibtex.fields
ltex.latex.commands
ltex.latex.environments
ltex.markdown.nodes
ltex.configurationTarget
ltex.additionalRules.enablePickyRules
ltex.additionalRules.motherTongue
ltex.additionalRules.languageModel
ltex.additionalRules.neuralNetworkModel
ltex.additionalRules.word2VecModel
ltex.languageToolHttpServerUri
ltex.languageToolOrg.username
ltex.languageToolOrg.apiKey
ltex.ltex-ls.path
ltex.ltex-ls.logLevel
ltex.java.path
ltex.java.initialHeapSize
ltex.java.maximumHeapSize
ltex.sentenceCacheSize
ltex.completionEnabled
ltex.diagnosticSeverity
ltex.checkFrequency
ltex.clearDiagnosticsWhenClosingFile
ltex.statusBarItem
ltex.trace.server
- FAQ
- General Questions
- What's the difference between vscode-ltex, ltex-ls, and LanguageTool?
- Why does LT<sub>E</sub>X have such a high CPU load?
- How can I check multiple languages at once?
- Why does LT<sub>E</sub>X 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 LT<sub>E</sub>X stand for?
- Where can I ask a question that's not answered here?
- Questions about vscode-ltex
- General Questions
- Code of Conduct
- vscode-ltex / coc-ltex
- ltex-ls (LT<sub>E</sub>X LS)