/vscode-generic-key-value-syntax-highlight

Turns the first word in a line into a keyword or a #comment

MIT LicenseMIT

Turns the first word in a line into a keyword or a #comment. Also recognizes $variables.

Nginx sample

Usage

  • automatic for .conf files

  • override your current syntax highlight by choosing Key Value when changing file association
    Override Syntax Highlight

  • make it permanent in settings.json

    "files.associations": {
        "*.yml": "key-value",
    }