PyCharm has a built-in editor for YAML files. I can create any file that ends with ".yml" and it will do syntax check on it. Today I wanted to add a file called cluster.yml
to my repository. PyCharm thought that it is kubernetes config file and marked all of its content as big fatal error. :-)
Even code completion works on it, showing various kubernetes options:
In this particular project, the file has nothing to do with kubernetes. It just happens to have that name cluster.yml
.
I have tried to "override file type" in PyCharm, but it already has "YAML" file type. I want this extra schema check gone, and get back my simple and effective plain YAML editor and syntax check.
But how?
The PyCharm status bar has a section in the lower right showing which JSON schema it is using to check your file. If you click it, you can change the schema or choose "Ignore JSON schema for file".
PyCharm version: 2023.3.5