I wanted to fix the errors that yamllint gives. Like autotpep8 automatically formats python code to PEP8 style, do we have something similar for yaml files? Or is there any plugins available in VSCode & Pycharm?
To fix errors in . yml files, you will need to use a YAML Parser. Paste your . yml configuration file into the YAML Parser - the file with the error is most likely the file you edited last.
A linter for YAML files. yamllint does not only check for syntax validity, but for weirdnesses like key repetition and cosmetic problems such as lines length, trailing spaces, indentation, etc.
SlickEdit - The most powerful YAML editor in the world. SlickEdit has the most powerful YAML features available including a rich set of symbol analysis and navigation features, integrated builds/compiles, powerful version control integration, GNU C++ debugger, Windbg debugger, source diff, and much more.
Use this extension for VSCODE. It provides comprehensive YAML Language support to Visual Studio Code, via the yaml-language-server, with built-in Kubernetes and Kedge syntax support.
Press (Ctrl + Shift + O)
or in Mac (option⌥ + shift⇧ + F)
for Document Outlining.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With