Skip to content

Vale.sh Integration

Francisco Cabrera edited this page Jan 17, 2024 · 4 revisions

This repository uses vale.sh to help tech writers and contributors adhere to Microsoft's writing styling guidelines. Vale is a command-line tool that allows you to check your writing for grammar and spelling errors against a set of style rules.

Vale configuration

To use Vale linting in this project, the repository has already been configurated with the .vale.ini file, which contains the set of rules to check against. For more information about these rules, see Vale configuration.

This repository is configured to follow the Microsoft Styling Guide. Styling configuration can be found at styles/Microsoft.

Vale + Visual Studio Code Integration

To integrate Vale with Visual Studio Code, you can use the Vale VSCode extension. Follow the steps below to complete the Vale installation and use the extension:

  1. Install the vale.sh cli.
  2. Open Visual Studio Code and click on the Extensions icon on the left-hand side of the window to navigate to the Extensions Marketplace.
  3. Search for "Vale VSCode" in the search bar and install the extension by clicking on the "Install" button.
  4. After installation, restart the Visual Studio Code instance.
  5. Ensure that you have a Vale configuration available within your project. Configuration should be already created under docs\.vale.ini.
  6. Start using Vale to lint your content. Open a file in Visual Studio Code and Vale.sh will run automatically. Any errors or warnings will be displayed in the Problems output tab at the bottom of the Visual Studio Code window.

Vale CI Integration

Clone this wiki locally