Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>YamlLint FixNew to Visual Studio Code? Get it now.
YamlLint Fix

YamlLint Fix

Kus Cámara

|
33 installs
| (0) | Free
Extension for YAML linting and fixing using yamllint and yamlfix
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

YamlLint Fix

A VS Code extension that integrates yamllint for linting and yamlfix for fixing YAML files.

Screenshots

Popup with error description

Problems Panel

Command Palette

Features

  • Automatic linting of YAML files on save, with errors shown automatically in the editor and the Problems panel
  • Automatic fixing of YAML files on save (optional, can be enabled in settings)
  • Manual fixing of current file or all files in workspace
  • Support for custom .yamllint configuration files
  • Configurable paths for yamllint and yamlfix executables

Requirements

  • yamllint installed and available in PATH
  • yamlfix installed and available in PATH

Installation

  1. Install the required tools:

    pip install yamllint yamlfix
    
  2. Install the extension from the VS Code marketplace or build from source:

    npm i -g @vscode/vsce
    npm install
    vsce package
    code --install-extension vsce-yamllint-fix-<version>.vsix
    

Configuration

The extension can be configured through VS Code settings:

  • yamlLintFix.yamllintPath: Path to yamllint executable (default: "yamllint")
  • yamlLintFix.yamlfixPath: Path to yamlfix executable (default: "yamlfix")
  • yamlLintFix.autoFixOnSave: Automatically fix YAML files on save (default: false; can be enabled in settings)
  • yamlLintFix.configFile: Path to yamllint configuration file (default: ".yamllint")

Usage

Commands

  • YamlLintFix: Fix file - Fix the current YAML file
  • YamlLintFix: Fix all files in workspace - Fix all YAML files in the workspace

Configuration File

Place a .yamllint file in your project root to configure yamllint rules. A file with a different name can be specified in the extension settings.

Example:

extends: default

rules:
  line-length: disable
  truthy:
    allowed-values: ['true', 'false', 'yes', 'no']

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines before submitting a pull request.

License

This project is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft