The official Visual Studio Code extension for Vale.
The Vale extension for VS Code provides customizable spelling, style, and grammar checking for a variety of markup formats (Markdown, AsciiDoc, reStructuredText, HTML, and DITA).
As of v0.15.0, the extension drops support for Vale Server which has ceased development. Many of the features from Vale Server will find their way into the Vale CLI tool, and this extension.
- Install Vale;
- install
vale-vscode
(this extension) via the Marketplace; - restart VS Code (recommended).
Browse detailed information for each alert, including the file location, style, and rule ID.
Navigate from an in-editor alert to a rule's implementation on your StylesPath
by clicking "View Rule".
Fix word usage, capitalization, and more using Quick Fixes (macOS: cmd + ., Windows/Linux: Ctrl + .)
Spelling errors are currently not supported, but will be supported in a future version.
The extension offers a number of settings and configuration options (Preferences > Extensions > Vale)..
-
vale.config
(default:null
): Absolute path to a Vale configuration file. Use the predefined${workspaceFolder}
variable to reference configuration file from a custom location. (NOTE: On Windows you can use '/' and can omit.cmd
in the path value.) If not specified, the extension uses the default search process (relative to the current file).Example
{ // You can use ${workspaceFolder} it will be replaced by workspace folder path "vale.config": "${workspaceFolder}/node_modules/some-package/.vale.ini" // or use some absolute path "vale.config": "/some/path/to/.vale.ini" }
-
vale.path
(default:null
): Absolute path to the Vale binary. Use the predefined${workspaceFolder}
variable to reference a non-global binary. (NOTE: On Windows you can use '/' and can omit.cmd
in the path value.)Example
{ // You can use ${workspaceFolder} it will be replaced by workspace folder path "vale.path": "${workspaceFolder}/node_modules/.bin/vale" // or use some absolute path "vale.path": "/some/path/to/vale" }
-
vale.minAlertLevel
(default:inherited
): Defines from which level of errors and above to display in the problems output.