Grammar, Style and Spell Checking in VS Code via LanguageTool. Support Markdown, MDX, HTML, and plain text files.
In memory of Adam Voss, original creator of the LanguageTool for Visual Studio Code extension.
settings.json
.The defaults are probably not going to work for you, but they are there to make sure using LanguageTool's Public API is done by choice. See this issue on the Atom LanguageTool Linter for an explanation why.
The defaults assume the following:
You do not want to use the LanguageTool's Public API
You're running LanguageTool HTTP Server on your machine using the default port of 8081.
docker run --rm -p 8081:8010 silviof/docker-languagetool
. See
silvio/docker-languagetool
for more information.You do not want to have this extension manage your local LanguageTool HTTP Server service.
If this doesn't work for you, here are your options.
This could either be a locally running instance of LanguageTool, or the service running somewhere else.
http://localhost:8081
).external
.Works well if you're only using LanguageTool in Visual Studio Code.
languagetool-server.jar
file. The install doc has hints.managed
.Make sure you read and understand LanguageTool's Public API before doing this.
public
.Most configuration items should be safe, but there are three you should pay particular attention to:
auto
. If it isn't, the service will throw an
error.You have the chance to ignore specific rules inline to not bloat up your ignore list for single words:
<!-- @IGNORE:UPPERCASE_SENTENCE_START@ -->
soll heißen, dass die Nachricht von mir ist, die Koordinaten hat
ein kleiner Computer, den Sigrún mir zur Verfügung gestellt hat aus
dem irdischen
‚World Geodetic System 1984‘ <!-- @IGNORE:GERMAN_SPELLER_RULE(Geodetic)@ -->
This example will ignore the missing capital letter at the beginning (soll → Soll) and an unknown word ('Geodetic')
The optional match word is useful if the same rule is applied to several words in the sentence.
The rules can be applied to the current line (e.g. at the end) or at the line before.
Syntax:
@LT-IGNORE:<rulename>(<text-match>)@
The and the text-match
is optional.
Note: Even in pandoc you have to handle the comment in html output. This can be done by using a filter.
The following projects provided excellent guidance on creating this project.