-
Notifications
You must be signed in to change notification settings - Fork 539
Linters
The ChkTeX utility is a LaTeX semantic checker. Once installed, and the relevant setting enabled it is automatically run on any open TeX documents. It output is parsed by the extension and displayed in the Problems panel.
Setting key | Description | Default | Type |
---|---|---|---|
latex-workshop.chktex.args.active |
Arguments to be passed to ChkTeX for current file | ["-wall", "-n22", "-n30", "-e16", "-q"] |
array of strings |
latex-workshop.chktex.args.root |
Arguments to be passed to ChkTeX for entire project | ["-wall", "-n22", "-n30", "-e16", "-q"] |
array of strings |
latex-workshop.chktex.enabled |
Enable LaTeX linting with ChkTeX | false |
boolean |
latex-workshop.chktex.interval |
Time interval in ms that ChkTeX is run | 300 | integer |
latex-workshop.chktex.path |
Location of ChkTeX executable | "chktex" |
string |
Linter arguments to check LaTeX syntax of the current file state in real time with ChkTeX.
Arguments must be in separate strings in the array. Additional arguments, i.e., -I0 -f%f:%l:%c:%d:%k:%n:%m\n
will be appended when constructing the command. Current file contents will be piped to the command through stdin.
type | default value |
---|---|
array of strings | ["-wall", "-n22", "-n30", "-e16", "-q"] |
Linter arguments to check LaTeX syntax of the entire project from the root file with ChkTeX.
Arguments must be in separate strings in the array. Additional arguments, i.e., -f%f:%l:%c:%d:%k:%n:%m\n %DOC%
will be appended when constructing the command.
type | default value |
---|---|
array of strings | ["-wall", "-n22", "-n30", "-e16", "-q"] |
Enable linting LaTeX with ChkTeX.
The active document will be linted when no document changes for a defined period of time.
The full project will be linted from the root on file save.
type | default value |
---|---|
boolean | false |
Defines the time interval in milliseconds between invoking LaTeX linter on the active file.
type | default value |
---|---|
integer | 300 |
Define the location of ChkTeX executive file.
This command will be joint with latex-workshop.chktex.args.*
and required arguments to form a complete command of ChkTeX.
"latex-workshop.chktex.path": "chktex"
type | default value |
---|---|
string | "chktex" |