Good news everyone:
I created a json schema for the openHAB yaml files and uploaded it to schema store.
That means you can now easily get structural highlighting and auto complete for yaml files in your favorite IDE.
I’ve added the conf/yaml path as a default for openHAB configurations so some IDEs should automatically detect the format.
If the file is in a different path you can still manually select it for syntax highlighting.
We can use this thread to both discuss issues and to share setup steps for IDEs.
This only works for a JetBrains IDE (e.g. Pycharm) and not VSCode.
It would be nice if you or Udo could make a step by step guide for VSCode.
I could link it from the first post so it would work as index where we have the guides for the different IDEs.
Install the YAML plugin in VS Code through Marketplace (Contributor is Red Hat)
For automatic scheme, go to settings - plugins - YAML and open the settings.json for Yaml:Schemas.
Please be aware that there are a bunch of different options to load settings, i.e. user, folder, workspace and much more I can’t remember It depends on how you use VS Code which is the right place to configure, so chose wisely.